sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT To par FROM table WHERE Player = mathew goggin
CREATE TABLE INST, Here is a database schema( table schema);
what is the to par for mathew goggin?.It is not neccessary to use all the tables.
SELECT MIN(games) FROM table_name_91 WHERE name = "jeremiah massey" AND points < 340
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Games when Name is Jeremiah Massey and when Points is less than 340?It is not neccessary to use all the tables.
SELECT COUNT Population FROM table WHERE Median family income = $50,553
CREATE TABLE INST, Here is a database schema( table schema);
What's the population that has a median family income of $50,553?.It is not neccessary to use all the tables.
SELECT MIN(took_office) FROM table_name_2 WHERE district = 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest date of taking office for district 22?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_89 WHERE year = "1955"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps were in 1955?It is not neccessary to use all the tables.
SELECT high_assists FROM table_15780049_6 WHERE team = "Cleveland"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most assist when the opponent was Cleveland?It is not neccessary to use all the tables.
SELECT eliminated_by FROM table_name_61 WHERE elimination = "1"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the eliminated by when the elimination was 1?It is not neccessary to use all the tables.
SELECT qb_rating FROM table_20906175_3 WHERE name = "Neil Lomax"
CREATE TABLE INST, Here is a database schema( table schema);
What was the QB rating for Neil lomax?It is not neccessary to use all the tables.
SELECT Production Company FROM table WHERE Producer(s) = sam mccarthy
CREATE TABLE INST, Here is a database schema( table schema);
For which production company did Sam Mccarthy produce?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's score of the game where South Melbourne is the away team?.It is not neccessary to use all the tables.
SELECT Marriage FROM table WHERE Death = 17 december 1471
CREATE TABLE INST, Here is a database schema( table schema);
When was the marriage of the person who died on 17 December 1471?.It is not neccessary to use all the tables.
SELECT "Constructor" FROM table_77678 WHERE "Laps" > '72' AND "Driver" = 'eddie irvine'
CREATE TABLE INST, Here is a database schema( table schema);
who is the constructor when the laps is more than 72 and the driver is eddie irvine?It is not neccessary to use all the tables.
SELECT "Region" FROM table_75674 WHERE "Format" = 'cd maxi'
CREATE TABLE INST, Here is a database schema( table schema);
Which region had a release format of CD Maxi?It is not neccessary to use all the tables.
SELECT pinyin FROM table_2847477_2 WHERE english_name = "Xin County"
CREATE TABLE INST, Here is a database schema( table schema);
What is the pinyin name for the english name xin county?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_27715173_6 WHERE record = "10-1"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played where the record was 10-1?It is not neccessary to use all the tables.
SELECT exports FROM table_26160007_1 WHERE total_trade = "14,954.86"
CREATE TABLE INST, Here is a database schema( table schema);
Where the total trade is 14954.86 what are the exports?It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Away team = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the Average crowd when the away team was north melbourne?.It is not neccessary to use all the tables.
SELECT network_name, COUNT(*) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id ORDER BY network_name DESC
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of trains for each station, as well as the station network name Show the result with a bar graph, sort in descending by the X-axis please.It is not neccessary to use all the tables.
SELECT High assists FROM table WHERE High points = tayshaun prince (23)
CREATE TABLE INST, Here is a database schema( table schema);
What is High Assists, when High Points is "Tayshaun Prince (23)"?.It is not neccessary to use all the tables.
SELECT Bronze FROM table WHERE Gold < 39 AND Silver = 3 AND Rank < 35 AND Nation = spain
CREATE TABLE INST, Here is a database schema( table schema);
What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?.It is not neccessary to use all the tables.
SELECT Power output FROM table WHERE Model = s-13
CREATE TABLE INST, Here is a database schema( table schema);
Name the power output for model of s-13.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT dept_name) FROM course
CREATE TABLE INST, Here is a database schema( table schema);
How many departments offer courses?It is not neccessary to use all the tables.
SELECT Constituency number FROM table WHERE Name = pandhana
CREATE TABLE INST, Here is a database schema( table schema);
What is the Constituency number for Pandhana?.It is not neccessary to use all the tables.
SELECT day_pass FROM table_20803241_1 WHERE type_of_fare = "Mega Pass* (Senior/Disabled)"
CREATE TABLE INST, Here is a database schema( table schema);
When mega pass* (senior/disabled) is the type of fare what is the day pass?It is not neccessary to use all the tables.
SELECT Population 2000 Census FROM table WHERE Area (km²) = 77
CREATE TABLE INST, Here is a database schema( table schema);
Name the population 2000 census for 77 area.It is not neccessary to use all the tables.
SELECT loa__metres_ FROM table_25594271_2 WHERE yacht = "Ichi Ban"
CREATE TABLE INST, Here is a database schema( table schema);
What were the LOA metres for the yacht ichi ban?It is not neccessary to use all the tables.
SELECT LOA (Metres) FROM table WHERE Skipper = Jez Fanstone
CREATE TABLE INST, Here is a database schema( table schema);
What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?.It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Poles < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of wins associated with under 0 poles?.It is not neccessary to use all the tables.
SELECT title FROM table_name_59 WHERE arranger = "tarek akef" AND length = "3:50"
CREATE TABLE INST, Here is a database schema( table schema);
What is the title track that is 3:50 and arranged by Tarek Akef?It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Score = 12-1
CREATE TABLE INST, Here is a database schema( table schema);
Which champion got a score of 12-1?.It is not neccessary to use all the tables.
SELECT reverse FROM table_1682865_1 WHERE £1_fraction = "1/480"
CREATE TABLE INST, Here is a database schema( table schema);
What is the reverse when the £1 fraction is 1/480?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Opponents in the final = els callens nancy feber
CREATE TABLE INST, Here is a database schema( table schema);
What tournament had an opponent of Els Callens Nancy Feber?.It is not neccessary to use all the tables.
SELECT Game FROM table WHERE POV character = quentyn martell
CREATE TABLE INST, Here is a database schema( table schema);
Which game does the quentyn martell have?.It is not neccessary to use all the tables.
SELECT played FROM table_name_91 WHERE goal_difference = "+51"
CREATE TABLE INST, Here is a database schema( table schema);
What is Played when Goal Difference is "+51"?It is not neccessary to use all the tables.
SELECT MAX(no_in_season) FROM table_2182654_6 WHERE written_by = "Nancy Oliver"
CREATE TABLE INST, Here is a database schema( table schema);
What s the episode number in the season that was written by Nancy Oliver?It is not neccessary to use all the tables.
SELECT Variant FROM table WHERE Bodybuilder = Alexander
CREATE TABLE INST, Here is a database schema( table schema);
What is the variant when Alexander was the bodybuilder?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GASTROINTESTINAL BLEED" AND demographic.age < "79"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is gastrointestinal bleed and age is less than 79?It is not neccessary to use all the tables.
SELECT Longitude FROM table WHERE ANSI code = 1759682
CREATE TABLE INST, Here is a database schema( table schema);
What is the longitude of the township at ANSI code 1759682?.It is not neccessary to use all the tables.
SELECT incumbent FROM table_1342359_17 WHERE first_elected = 1927
CREATE TABLE INST, Here is a database schema( table schema);
Who won in 1927It is not neccessary to use all the tables.
SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 0
CREATE TABLE INST, Here is a database schema( table schema);
Flap of 0 and a Race smaller than 2 and a Season of 1989 and a Pole smaller than 0 had what average podium?It is not neccessary to use all the tables.
SELECT SUM High Checkout FROM table WHERE Legs Lost = 17 AND 140+ = 15 AND Played > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of high checkout when legs Lost is 17, 140+ is 15, and played is larger than 4?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE December = 30
CREATE TABLE INST, Here is a database schema( table schema);
What's the score for December of 30?.It is not neccessary to use all the tables.
SELECT High School Name FROM table WHERE Prefecture = Kyoto
CREATE TABLE INST, Here is a database schema( table schema);
Which high school is located in Kyoto?.It is not neccessary to use all the tables.
SELECT score FROM table_name_64 WHERE date = "october 30"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on October 30?It is not neccessary to use all the tables.
SELECT Institute FROM table WHERE Democratic Renewal = 18.0% – 22.0%
CREATE TABLE INST, Here is a database schema( table schema);
which institutes gave the democratic renewal 18.0% – 22.0% on a poll from October 6, 1985?.It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Comp = ech AND Date = 1989
CREATE TABLE INST, Here is a database schema( table schema);
What's the place of 1989 with a comp of ECH?.It is not neccessary to use all the tables.
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
CREATE TABLE INST, Here is a database schema( table schema);
What is the finish when there was more than 192 laps and a qual of 135.736?It is not neccessary to use all the tables.
SELECT Tier 1 ratio FROM table WHERE Institution = Irish Life and Permanent
CREATE TABLE INST, Here is a database schema( table schema);
Name the tier 1 ratio for irish life and permanent.It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Opponent = at kansas city chiefs
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number in attendance against the game at Kansas City Chiefs?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase"
CREATE TABLE INST, Here is a database schema( table schema);
What is the outcome of the tournament with partner ilie năstase?It is not neccessary to use all the tables.
SELECT Reason for change FROM table WHERE Vacator = Henry Latimer (F)
CREATE TABLE INST, Here is a database schema( table schema);
when the vacator was Henry Latimer (f), what were the causes for modification?.It is not neccessary to use all the tables.
SELECT firefox FROM table_name_86 WHERE chrome = "25.08%"
CREATE TABLE INST, Here is a database schema( table schema);
What was the firefox % was chrome was 25.08%?It is not neccessary to use all the tables.
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the competition of friendly at match 7?It is not neccessary to use all the tables.
SELECT SUM Total FROM table WHERE Bronze > 2 AND Nation = united states AND Gold > 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?.It is not neccessary to use all the tables.
SELECT Class AA FROM table WHERE Class AAA = giddings AND School Year = 2010-11
CREATE TABLE INST, Here is a database schema( table schema);
What is the Class AA in the 2010-11 school year with a class AAA of Giddings?.It is not neccessary to use all the tables.
SELECT week__number FROM table_26250227_1 WHERE theme = "Auditioner's Choice"
CREATE TABLE INST, Here is a database schema( table schema);
What are all the week # where subject matter is auditioner's choiceIt is not neccessary to use all the tables.
SELECT Class FROM table WHERE Quantity preserved = 0 AND Quantity made = 2
CREATE TABLE INST, Here is a database schema( table schema);
What class has 0 preserved and 2 made?.It is not neccessary to use all the tables.
SELECT name FROM table_name_31 WHERE title = "ruler"
CREATE TABLE INST, Here is a database schema( table schema);
Who held the title of Ruler?It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_name_7 WHERE against < 28 AND team = "americano-sp" AND played > 8
CREATE TABLE INST, Here is a database schema( table schema);
How many positions have points against less than 28, americano-sp as the team, with a played greater than 8?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = john cook
CREATE TABLE INST, Here is a database schema( table schema);
What is Place, when Player is "John Cook"?.It is not neccessary to use all the tables.
SELECT party FROM table_name_58 WHERE representative = "thomas l. young"
CREATE TABLE INST, Here is a database schema( table schema);
Which party did Thomas L. Young belong to?It is not neccessary to use all the tables.
SELECT Election date FROM table WHERE Member = charles brown category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
What is the election date for the electorate of member charles brown category:articles with hcards?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "NEWBORN" AND lab.itemid = "50814"
CREATE TABLE INST, Here is a database schema( table schema);
how many newborn patients had the item id 50814?It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_98 WHERE name = "andrea sinko" AND all_around > 9.65
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest total that has andrea sinko as the name with an all around greater than 9.65?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Partner = byron black AND Opponents = goran ivanišević brian macphie
CREATE TABLE INST, Here is a database schema( table schema);
What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?.It is not neccessary to use all the tables.
SELECT Sanskrit संस्कृतम् FROM table WHERE Tamil தமிழ் = rōkiṇi ரோகிணி
CREATE TABLE INST, Here is a database schema( table schema);
What kind of Sanskrit संस्कृतम् has a Tamil தமிழ் of rōkiṇi ரோகிணி?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 8.9 (57)
CREATE TABLE INST, Here is a database schema( table schema);
What venue featured a home score of 8.9 (57)?.It is not neccessary to use all the tables.
SELECT COUNT("Prod. code") FROM table_28250 WHERE "No." = '45'
CREATE TABLE INST, Here is a database schema( table schema);
How many production codes are there for episode number 45?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-46456')) AND treatment.treatmentname = 'surgery consultation' AND STRFTIME('...
CREATE TABLE INST, Here is a database schema( table schema);
how many times did patient 005-46456 receive surgery consultation in 2104?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_27715173_8 WHERE record = "39–7"
CREATE TABLE INST, Here is a database schema( table schema);
what is the location attendance when the record is 39–7?It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Grid = 21
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE RIDER WITH A 21 GRID?.It is not neccessary to use all the tables.
SELECT MAX Roll FROM table WHERE School = Brechin High School
CREATE TABLE INST, Here is a database schema( table schema);
How many kids go to Brechin High School?.It is not neccessary to use all the tables.
SELECT Married Filing Separately FROM table WHERE Single = $0–$8,350
CREATE TABLE INST, Here is a database schema( table schema);
Name the married filing separately for single of $0–$8,350.It is not neccessary to use all the tables.
SELECT score FROM table_name_8 WHERE player = "vijay singh"
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for vijay singhIt is not neccessary to use all the tables.
SELECT COUNT Party FROM table WHERE District = California 23
CREATE TABLE INST, Here is a database schema( table schema);
How many parties won the election in the California 23 district?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 17.4 (106)
CREATE TABLE INST, Here is a database schema( table schema);
Which away team has a score of 17.4 (106)?.It is not neccessary to use all the tables.
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Manufacturer
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, give me the comparison about the sum of manufacturer over the name , and group by attribute name by a bar chart, and sort y-axis in ascending order please.It is not neccessary to use all the tables.
SELECT venue FROM table_name_51 WHERE outcome = "13" AND year = "2007"
CREATE TABLE INST, Here is a database schema( table schema);
Outcome of 13 and a Year of 2007 happened in what venue?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
Class of 500cc and a Wins smaller than 0 had what average year?It is not neccessary to use all the tables.
SELECT "Position" FROM table_7281 WHERE "2012" = 'garion weller'
CREATE TABLE INST, Here is a database schema( table schema);
What position did Garion Weller hold in 2012?It is not neccessary to use all the tables.
SELECT Box Score FROM table WHERE Home team = adelaide 36ers
CREATE TABLE INST, Here is a database schema( table schema);
What was the box score during a home game of the Adelaide 36ers?.It is not neccessary to use all the tables.
SELECT player FROM table_name_31 WHERE date = "12-03-2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Player with a Date with 12-03-2003?It is not neccessary to use all the tables.
SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-20141' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi...
CREATE TABLE INST, Here is a database schema( table schema);
is the bicarbonate level of patient 016-20141 second measured on the last hospital visit less than first measured on the last hospital visit?It is not neccessary to use all the tables.
SELECT Owner FROM table WHERE Broadcasting area = sanam pao
CREATE TABLE INST, Here is a database schema( table schema);
Who's the owner of Sanam Pao as the broadcasting area?.It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Run time = 24:44
CREATE TABLE INST, Here is a database schema( table schema);
Name the episode for run time in 24:44.It is not neccessary to use all the tables.
SELECT Total Passengers FROM table WHERE Freight (Metric Tonnes) = 827
CREATE TABLE INST, Here is a database schema( table schema);
what's the total passengers with freight (metric tonnes) being 827.It is not neccessary to use all the tables.
SELECT "L2 cache" FROM table_51065 WHERE "Model number" = 'atom z625'
CREATE TABLE INST, Here is a database schema( table schema);
What is L2 Cache, when Model Number is Atom Z625?It is not neccessary to use all the tables.
SELECT weight__kg_ FROM table_name_44 WHERE name = "john-michael liles"
CREATE TABLE INST, Here is a database schema( table schema);
What is the weight of John-Michael Liles?It is not neccessary to use all the tables.
SELECT player FROM table_name_12 WHERE position = "guard-forward" AND school_club_team = "pepperdine"
CREATE TABLE INST, Here is a database schema( table schema);
Which Player plays Guard-Forward Position for School/Club Team Pepperdine?It is not neccessary to use all the tables.
SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 505
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Opponents when Raiders Points is "42" when Attendance is less than 52505?It is not neccessary to use all the tables.
SELECT city FROM table_name_42 WHERE type_of_game = "friendly" AND opponent = "tunisia"
CREATE TABLE INST, Here is a database schema( table schema);
what city has a game of friendly and an opponent of tunisia?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_3 WHERE director = "christophe barratier"
CREATE TABLE INST, Here is a database schema( table schema);
Director of christophe barratier had what highest year?It is not neccessary to use all the tables.
SELECT skip FROM table_name_30 WHERE second = "philippe caux"
CREATE TABLE INST, Here is a database schema( table schema);
What is the skip with a second of Philippe Caux?It is not neccessary to use all the tables.
SELECT Original performer FROM table WHERE Episode = Casting
CREATE TABLE INST, Here is a database schema( table schema);
Who is the original performer when the episode is casting?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Game = 38
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for game 38?.It is not neccessary to use all the tables.
SELECT margin_of_victory FROM table_name_55 WHERE tournament = "pocono northeast classic"
CREATE TABLE INST, Here is a database schema( table schema);
What's the margin of victory during the Pocono Northeast Classic?It is not neccessary to use all the tables.
SELECT ABS((SELECT "height" FROM table_203_418 WHERE "player" = 'garreth lodge') - (SELECT "height" FROM table_203_418 WHERE "player" = 'thomas pearson'))
CREATE TABLE INST, Here is a database schema( table schema);
what is the difference in height between garreth lodge and thomas pearson ?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Points = 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for the man who scored 1 point?.It is not neccessary to use all the tables.
SELECT date FROM table_name_60 WHERE japan = "0.57 million"
CREATE TABLE INST, Here is a database schema( table schema);
Which date had Japanese sales of 0.57 million?It is not neccessary to use all the tables.
SELECT country FROM table_name_55 WHERE notes = "sa/b" AND time = "5:51.30"
CREATE TABLE INST, Here is a database schema( table schema);
What country has sa/b as the notes and a time of 5:51.30?It is not neccessary to use all the tables.