text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (date VARCHAR, opponent VARCHAR, record VARCHAR)
### Question:
On what date was the opponent the White Sox and the record 18-13?
### Answer:
SELECT date FROM table_name_90 WHERE opponent = "white sox" AND record = "18-13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16441561_5 (pick__number INTEGER, position VARCHAR)
### Question:
Who was the lowest picked LB
### Answer:
SELECT MIN(pick__number) FROM table_16441561_5 WHERE position = "LB" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (points VARCHAR, against VARCHAR, drawn VARCHAR, team VARCHAR)
### Question:
What number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?
### Answer:
SELECT COUNT(points) FROM table_name_95 WHERE drawn < 2 AND team = "paulistano" AND against < 15 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16799784_3 (latitude VARCHAR, longitude VARCHAR)
### Question:
At a longitude of 321.9e, what is the latitude of the features found?
### Answer:
SELECT latitude FROM table_16799784_3 WHERE longitude = "321.9E" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (score_points VARCHAR, total VARCHAR)
### Question:
What is the score points when the total is 16?
### Answer:
SELECT score_points FROM table_name_35 WHERE total = "16" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR)
### Question:
Who owns CKSB-8-FM?
### Answer:
SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (college_junior_club_team VARCHAR, round VARCHAR)
### Question:
Which College/junior/club team has a Round of 4?
### Answer:
SELECT college_junior_club_team FROM table_name_11 WHERE round = 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1473672_2 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
### Question:
Jack Lynch played for the oshawa generals (omjhl) before playing for what nhl team?
### Answer:
SELECT nhl_team FROM table_1473672_2 WHERE college_junior_club_team = "Oshawa Generals (OMJHL)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR)
### Question:
Who was the winner of the tre valli varesine race?
### Answer:
SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27277284_28 (order_part_number VARCHAR, mult_1 VARCHAR)
### Question:
What is the oder part number for the model with 10x mult. 1?
### Answer:
SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR)
### Question:
Which game did Curtis Borchardt play with more than 274 rebounds?
### Answer:
SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (club VARCHAR, location VARCHAR)
### Question:
Which club is located in Thomson, Victoria?
### Answer:
SELECT club FROM table_name_15 WHERE location = "thomson, victoria" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (method VARCHAR, opponent VARCHAR)
### Question:
What was the method of resolution for the fight against jake brown?
### Answer:
SELECT method FROM table_name_77 WHERE opponent = "jake brown" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_243664_1 (real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR)
### Question:
Name the real life years of operation for amtrak
### Answer:
SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, rank VARCHAR)
### Question:
What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7?
### Answer:
SELECT AVG(total) FROM table_name_97 WHERE silver = 2 AND rank > 7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25353861_5 (player VARCHAR, blocks VARCHAR)
### Question:
Which player had 9 blocks?
### Answer:
SELECT player FROM table_25353861_5 WHERE blocks = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26745426_2 (Ends VARCHAR, stolen_ends VARCHAR)
### Question:
Name the number of ends lost for 6 stolen ends
### Answer:
SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR)
### Question:
What is the surface on 21 june 1993?
### Answer:
SELECT surface FROM table_name_60 WHERE date = "21 june 1993" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR)
### Question:
what was the opponent on 26 october 1889?
### Answer:
SELECT opponents FROM table_name_51 WHERE date = "26 october 1889" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (outcome VARCHAR, tournament VARCHAR)
### Question:
What is Outcome, when Tournament is "Chiang Mai , Thailand"?
### Answer:
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (game INTEGER, date VARCHAR)
### Question:
Date of October 1 has what average game?
### Answer:
SELECT AVG(game) FROM table_name_47 WHERE date = "october 1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR)
### Question:
What is the Code Name of the figure born in Hawaii?
### Answer:
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was home team Essendon's opponents score?
### Answer:
SELECT away_team AS score FROM table_name_9 WHERE home_team = "essendon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)
### Question:
What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?
### Answer:
SELECT AVG(seasons_completed) FROM table_name_97 WHERE division_titles < 1 AND playoff_appearances = 0 AND finals_appearances > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11622255_1 (location VARCHAR, tournament VARCHAR)
### Question:
what's the location where tournament is raley's senior gold rush
### Answer:
SELECT location FROM table_11622255_1 WHERE tournament = "Raley's Senior Gold Rush" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (position VARCHAR, bike_no VARCHAR)
### Question:
What is the aggregate number of Position that has a Bike No of 4?
### Answer:
SELECT COUNT(position) FROM table_name_19 WHERE bike_no = 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)
### Question:
Name the audition city for hyatt regency chicago
### Answer:
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR)
### Question:
What team played in the 1964 Tokyo Games?
### Answer:
SELECT name FROM table_name_56 WHERE games = "1964 tokyo" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR)
### Question:
Who is the away team at western oval?
### Answer:
SELECT away_team AS score FROM table_name_84 WHERE venue = "western oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (county VARCHAR, cerclis_id VARCHAR)
### Question:
What county has a CERCLIS ID of scd037405362?
### Answer:
SELECT county FROM table_name_64 WHERE cerclis_id = "scd037405362" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (league VARCHAR, year VARCHAR, position VARCHAR)
### Question:
What is the league of the third baseman player before 1973?
### Answer:
SELECT league FROM table_name_79 WHERE year < 1973 AND position = "third baseman" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_85 (surface VARCHAR, partner VARCHAR)
### Question:
What surface did hayley ericksen play on?
### Answer:
SELECT surface FROM table_name_85 WHERE partner = "hayley ericksen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER)
### Question:
What is the highest Apps, when Goals are greater than 5?
### Answer:
SELECT MAX(apps) FROM table_name_58 WHERE goals > 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19001916_2 (country VARCHAR, entities VARCHAR)
### Question:
What are all the countries where the electric company Ebisa has a presence?
### Answer:
SELECT country FROM table_19001916_2 WHERE entities = "EBISA" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2791668_1 (title VARCHAR, written_by VARCHAR)
### Question:
what is the name of the episode whose writer is philippe browning?
### Answer:
SELECT title FROM table_2791668_1 WHERE written_by = "Philippe Browning" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (coach VARCHAR, location VARCHAR)
### Question:
Who is the coach of the team from Port Pirie?
### Answer:
SELECT coach FROM table_name_6 WHERE location = "port pirie" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (venue VARCHAR, team VARCHAR)
### Question:
What venue did the team, evansville bluecats play on?
### Answer:
SELECT venue FROM table_name_17 WHERE team = "evansville bluecats" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Dogs (owner_id VARCHAR); CREATE TABLE Owners (owner_id VARCHAR)
### Question:
How many owners temporarily do not have any dogs?
### Answer:
SELECT COUNT(*) FROM Owners WHERE NOT owner_id IN (SELECT owner_id FROM Dogs) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (points INTEGER, team VARCHAR, rank VARCHAR)
### Question:
What is the sum of the points when Carlos drove for repsol honda in 8th place?
### Answer:
SELECT SUM(points) FROM table_name_93 WHERE team = "repsol honda" AND rank = "8th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
### Question:
What did the home team score when playing at Western Oval?
### Answer:
SELECT home_team AS score FROM table_name_41 WHERE venue = "western oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?
### Answer:
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t10" AND score = 68 - 71 = 139 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (score VARCHAR, date VARCHAR)
### Question:
What was the score on April 22?
### Answer:
SELECT score FROM table_name_17 WHERE date = "april 22" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR)
### Question:
Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith?
### Answer:
SELECT AVG(grid) FROM table_name_33 WHERE manufacturer = "aprilia" AND rider = "bradley smith" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (to_par VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is the Top that has a 66-71-66=203 score and a place of t1?
### Answer:
SELECT to_par FROM table_name_23 WHERE place = "t1" AND score = 66 - 71 - 66 = 203 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (size_code VARCHAR, owner_id VARCHAR)
### Question:
List each owner's first name, last name, and the size of his for her dog.
### Answer:
SELECT T1.first_name, T1.last_name, T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (total VARCHAR, year_s__won VARCHAR, to_par VARCHAR)
### Question:
What is the total for 1986 with a to par higher than 6?
### Answer:
SELECT COUNT(total) FROM table_name_87 WHERE year_s__won = "1986" AND to_par > 6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
### Question:
Which Tournament has a Surface of hard, and a Date of 24 september 2011?
### Answer:
SELECT tournament FROM table_name_40 WHERE surface = "hard" AND date = "24 september 2011" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR)
### Question:
What is the sum of the pick of the guard position player?
### Answer:
SELECT SUM(pick) FROM table_name_99 WHERE position = "guard" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (frequency_mhz VARCHAR, call_sign VARCHAR)
### Question:
Frequency for kamy?
### Answer:
SELECT frequency_mhz FROM table_name_4 WHERE call_sign = "kamy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (leading_scorer VARCHAR, visitor VARCHAR)
### Question:
In the competition in which the visiting team was the Suns, who was the leading scorer?
### Answer:
SELECT leading_scorer FROM table_name_41 WHERE visitor = "suns" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
### Question:
What is the smallest Crowd number for the Venue named Princes Park?
### Answer:
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "princes park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (score VARCHAR, player VARCHAR)
### Question:
What was the two-round score for Bob Tway?
### Answer:
SELECT score FROM table_name_45 WHERE player = "bob tway" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29753553_1 (year VARCHAR, sar_no VARCHAR)
### Question:
For what year is the SAR no. 874?
### Answer:
SELECT year FROM table_29753553_1 WHERE sar_no = 874 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342480_15 (player VARCHAR, touchdowns VARCHAR)
### Question:
Which player scored 14 touchdowns?
### Answer:
SELECT player FROM table_14342480_15 WHERE touchdowns = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR)
### Question:
Which Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75?
### Answer:
SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = "25 x 3" AND part_number = "a80486dx4-75" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27132791_3 (player VARCHAR, nfl_team VARCHAR)
### Question:
How many different players does the Washington Redskins have?
### Answer:
SELECT COUNT(player) FROM table_27132791_3 WHERE nfl_team = "Washington Redskins" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR)
### Question:
Which yacht name has a Combined elapsed time of 179d 11h 58m 14s?
### Answer:
SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (drawn INTEGER, win__percentage VARCHAR, lost VARCHAR, nationality VARCHAR, matches VARCHAR)
### Question:
Nationality of england, and a Matches smaller than 510, and a Lost of 4, and a Win % smaller than 28.6 had what lowest drawn?
### Answer:
SELECT MIN(drawn) FROM table_name_5 WHERE nationality = "england" AND matches < 510 AND lost = 4 AND win__percentage < 28.6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (system VARCHAR, license VARCHAR, current_version VARCHAR)
### Question:
What is the System when the Licence is gpl and the Current Version is 1.72?
### Answer:
SELECT system FROM table_name_63 WHERE license = "gpl" AND current_version = "1.72" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (crowd INTEGER, ground VARCHAR)
### Question:
What was the total crowd attendance at Westpac Stadium?
### Answer:
SELECT SUM(crowd) FROM table_name_98 WHERE ground = "westpac stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (year VARCHAR, ratt VARCHAR, comp VARCHAR)
### Question:
What year has a RAtt of 1 and a comp of 49?
### Answer:
SELECT year FROM table_name_60 WHERE ratt = "1" AND comp = "49" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (date VARCHAR, competition VARCHAR, venue VARCHAR)
### Question:
On what date was a friendly match held at Auckland?
### Answer:
SELECT date FROM table_name_32 WHERE competition = "friendly match" AND venue = "auckland" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (car__number INTEGER, points VARCHAR, laps VARCHAR)
### Question:
What is the sum of car numbers with less than 126 points and 147 laps?
### Answer:
SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE has_pet (age INTEGER, stuid VARCHAR)
### Question:
Find the average age of students who do not have any pet .
### Answer:
SELECT AVG(age) FROM student WHERE NOT stuid IN (SELECT stuid FROM has_pet) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR)
### Question:
Where was the GTE Suncoast Classic tournament held?
### Answer:
SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2562572_50 (type VARCHAR, settlement VARCHAR)
### Question:
What type of settlement is Jazak?
### Answer:
SELECT type FROM table_2562572_50 WHERE settlement = "Jazak" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (position VARCHAR, league_from VARCHAR)
### Question:
What team is from the Russian Major League?
### Answer:
SELECT position FROM table_name_21 WHERE league_from = "russian major league" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
Who was the constructor of the car that went 56 laps and had a grid of 15?
### Answer:
SELECT constructor FROM table_name_31 WHERE laps = "56" AND grid = "15" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20036882_2 (winning_pilot VARCHAR, country VARCHAR)
### Question:
Name the winning pilot for hungary
### Answer:
SELECT winning_pilot FROM table_20036882_2 WHERE country = "Hungary" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
### Question:
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
### Answer:
SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26060884_2 (burglary VARCHAR, forcible_rape VARCHAR)
### Question:
How many burglary crimes were committed if the forcible rapes were 1233?
### Answer:
SELECT burglary FROM table_26060884_2 WHERE forcible_rape = 1233 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16278894_1 (area__km_2__ VARCHAR, population_census_2009 VARCHAR)
### Question:
How many numbers were listed under area with a population of 240075 as of 2009?
### Answer:
SELECT COUNT(area__km_2__) FROM table_16278894_1 WHERE population_census_2009 = 240075 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR)
### Question:
Which team was played against in game 4?
### Answer:
SELECT team FROM table_name_40 WHERE game = 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (score VARCHAR, team_2 VARCHAR)
### Question:
What was the score of the game when team 2 was club valencia?
### Answer:
SELECT score FROM table_name_70 WHERE team_2 = "club valencia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24496403_1 (completed VARCHAR, ship VARCHAR)
### Question:
How many ships were named Carysfort?
### Answer:
SELECT COUNT(completed) FROM table_24496403_1 WHERE ship = "Carysfort" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE city (Hispanic VARCHAR, Black INTEGER)
### Question:
What are the percentage of hispanics in cities with the black percentage higher than 10?
### Answer:
SELECT Hispanic FROM city WHERE Black > 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR, overall VARCHAR)
### Question:
What is the lowest pick with fewer than 3 rounds and more than 4 overall?
### Answer:
SELECT MIN(pick) FROM table_name_15 WHERE round < 3 AND overall > 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2208838_2 (result VARCHAR, runner_up VARCHAR)
### Question:
What was the final score when River Plate was the runner-up?
### Answer:
SELECT result FROM table_2208838_2 WHERE runner_up = "River Plate" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (avg VARCHAR, player VARCHAR)
### Question:
What is Domenik Hixon's average rush?
### Answer:
SELECT avg FROM table_name_76 WHERE player = "domenik hixon" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (baia_mare VARCHAR, zalau VARCHAR, electrica_north_transylvania VARCHAR, bistrita VARCHAR)
### Question:
How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737?
### Answer:
SELECT COUNT(baia_mare) FROM table_name_59 WHERE electrica_north_transylvania < 14.476 AND bistrita = 643 AND zalau < 737 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (location VARCHAR, host VARCHAR, national_champion VARCHAR)
### Question:
At what Location did Robert Morris University (Illinois) Host the Lindenwood National Chamption?
### Answer:
SELECT location FROM table_name_71 WHERE host = "robert morris university (illinois)" AND national_champion = "lindenwood" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23287683_1 (season__number VARCHAR, production_code VARCHAR)
### Question:
List all season numbers with production codes of 5m21.
### Answer:
SELECT season__number FROM table_23287683_1 WHERE production_code = "5M21" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (d_42_√ VARCHAR, d_46_√ VARCHAR)
### Question:
What is the D 42 √ figure when D 46 √ is r 6?
### Answer:
SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = "r 6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (points VARCHAR, rank VARCHAR, games VARCHAR)
### Question:
How many points are there for rank 5 with more than 34 games?
### Answer:
SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (venue VARCHAR, home_team VARCHAR)
### Question:
What is the home team venue for the New Zealand Breakers?
### Answer:
SELECT venue FROM table_name_30 WHERE home_team = "new zealand breakers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (year INTEGER, notes VARCHAR)
### Question:
What is the lowest Year, when Notes is "5.19km, 18controls"?
### Answer:
SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27573848_18 (mountains_classification VARCHAR, winner VARCHAR)
### Question:
If the winner is Rui Costa, who made the mountains classification?
### Answer:
SELECT mountains_classification FROM table_27573848_18 WHERE winner = "Rui Costa" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (exaltation VARCHAR, domicile VARCHAR, sign VARCHAR)
### Question:
Which exaltation has a domicile of Saturn and Capricorn as a sign?
### Answer:
SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_22 (type VARCHAR, capacity VARCHAR, number VARCHAR)
### Question:
Which Type has a Capacity of 10 tons, and a Number of 24-27?
### Answer:
SELECT type FROM table_name_22 WHERE capacity = "10 tons" AND number = "24-27" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (station_name VARCHAR, arrival VARCHAR)
### Question:
What is the Station Name of the Arrival Starting Station?
### Answer:
SELECT station_name FROM table_name_63 WHERE arrival = "starting station" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1974545_1 (nickname VARCHAR, enrollment VARCHAR)
### Question:
Name the nickname for enrollment being 9000
### Answer:
SELECT nickname FROM table_1974545_1 WHERE enrollment = 9000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (forward_caste VARCHAR, scheduled_caste VARCHAR)
### Question:
WHAT IS THE FORWARD CASTE WITH A SCHEDULED CASTE OF 0.80%?
### Answer:
SELECT forward_caste FROM table_name_49 WHERE scheduled_caste = "0.80%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (visitor VARCHAR, leading_scorer VARCHAR)
### Question:
Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer?
### Answer:
SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (total__kg_ INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
### Question:
Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?
### Answer:
SELECT MAX(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR)
### Question:
What is the total number of people living in the nations that do not use English?
### Answer:
SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English") |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (score_in_the_final VARCHAR, date VARCHAR)
### Question:
What final score was there on October 8, 2006?
### Answer:
SELECT score_in_the_final FROM table_name_96 WHERE date = "october 8, 2006" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23575917_4 (davids_team VARCHAR, lees_team VARCHAR)
### Question:
How many David's team for the Lees Team of Deborah Meaden and Mark Watson?
### Answer:
SELECT COUNT(davids_team) FROM table_23575917_4 WHERE lees_team = "Deborah Meaden and Mark Watson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (score VARCHAR, december VARCHAR, points VARCHAR, game VARCHAR)
### Question:
Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?
### Answer:
SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (swimmer VARCHAR, year VARCHAR, time VARCHAR)
### Question:
What is Swimmer, when Year is less than 2011, and when Time is "53.06"?
### Answer:
SELECT swimmer FROM table_name_64 WHERE year < 2011 AND time = "53.06" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (song VARCHAR, points VARCHAR, artist VARCHAR)
### Question:
What's the name of the song by afro-dite that had a points total greater than 100?
### Answer:
SELECT song FROM table_name_31 WHERE points > 100 AND artist = "afro-dite" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.