sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Away team score FROM table WHERE Home team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
What was the score against home team, Richmond?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_25 WHERE 2003 = "2r" AND 2004 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the tournament that has the results of 2003 2r and 2004 1r?It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Byes < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which wins have less than 1 bye?.It is not neccessary to use all the tables.
SELECT Broadcast day and timings (in JST ) FROM table WHERE Broadcast network = TV Saitama
CREATE TABLE INST, Here is a database schema( table schema);
Name the broadcast day and timings for tv saitama.It is not neccessary to use all the tables.
SELECT transfer_window FROM table_name_12 WHERE country = "bra"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE TRANSFER WINDOW FOR THE COUNTRY OF BRA?It is not neccessary to use all the tables.
SELECT top_elevation__feet_ FROM table_25762852_1 WHERE name = "Steamboat"
CREATE TABLE INST, Here is a database schema( table schema);
If the name is Steamboat what is the top elevation?It is not neccessary to use all the tables.
SELECT City FROM table WHERE IATA = bva
CREATE TABLE INST, Here is a database schema( table schema);
Where has an IATA of BVA?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Class = 350cc AND Points > 2 AND Wins = 1
CREATE TABLE INST, Here is a database schema( table schema);
What team was the bike with a 350cc class, over 2 points, and 1 win?.It is not neccessary to use all the tables.
SELECT player_name FROM table_10361230_1 WHERE college = "Emporia State"
CREATE TABLE INST, Here is a database schema( table schema);
Which player went to Emporia State?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE League Cup = 0 (0) AND FA Cup = 12 (14)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products)
CREATE TABLE INST, Here is a database schema( table schema);
How many products have a price higher than the average?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Colony Name = northeastern crescent colony
CREATE TABLE INST, Here is a database schema( table schema);
Which City has a Colony Name of northeastern crescent colony?.It is not neccessary to use all the tables.
SELECT 2003 FROM table_name_37 WHERE 2005 = "did not qualify"
CREATE TABLE INST, Here is a database schema( table schema);
what is 2003 when 2005 is did not qualify?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_99 WHERE year = 1966
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of points in 1966?It is not neccessary to use all the tables.
SELECT "Candidate" FROM table_8478 WHERE "Number of votes" = '73,494'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the candidate with 73,494 votes?It is not neccessary to use all the tables.
SELECT Party FROM table WHERE Incumbent = James H. Morrison
CREATE TABLE INST, Here is a database schema( table schema);
which affiliation is james h. morrison part of.It is not neccessary to use all the tables.
SELECT COUNT(first_elected) FROM table_2668378_5 WHERE district = "Kentucky 3"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of first elected for kentucky 3It is not neccessary to use all the tables.
SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Pick with a Position of pg and a Round less than 1?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_90 WHERE venue = "glenferrie oval"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away side at glenferrie oval?It is not neccessary to use all the tables.
SELECT MIN Number (map) FROM table WHERE Area in km² = 9.7 AND Population Canada 2011 Census > 66,158
CREATE TABLE INST, Here is a database schema( table schema);
Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?.It is not neccessary to use all the tables.
SELECT MIN Game FROM table WHERE Record = 3–33
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest game number that has a Record of 3–33?.It is not neccessary to use all the tables.
SELECT Titles FROM table WHERE Result = TKO 11/12
CREATE TABLE INST, Here is a database schema( table schema);
Name the titles for tko 11/12.It is not neccessary to use all the tables.
SELECT over Total Tax Revenue (in %) FROM table WHERE Stamp duty reserve tax = n.a. AND Year = 1995-96
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total Tax Revenue that has an n.a. Stamp Duty Reserve Tax in the years 1995-96?.It is not neccessary to use all the tables.
SELECT AVG Capacity FROM table WHERE Suites = 150
CREATE TABLE INST, Here is a database schema( table schema);
What is the average capacity for 150 suites?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Enrollment = 12400
CREATE TABLE INST, Here is a database schema( table schema);
What school location had an enrollment of 12400?.It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_88 WHERE to_par > 2 AND player = "mark brooks"
CREATE TABLE INST, Here is a database schema( table schema);
What was Mark Brooks total score when he finished more than 2 above par?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Versus = australia
CREATE TABLE INST, Here is a database schema( table schema);
What is the Player with Versus with australia?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_29273182_1 WHERE production_code = "IP03010"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode with production code ip03010?It is not neccessary to use all the tables.
SELECT name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name
CREATE TABLE INST, Here is a database schema( table schema);
Return a histogram on what is the average number of stars that each reviewer awards for a movie?It is not neccessary to use all the tables.
SELECT COUNT(2 AS nd_runner_up) FROM table_20325360_2 WHERE rank = 3
CREATE TABLE INST, Here is a database schema( table schema);
The country competing in the Mr. International competition that holds a rank of 3 has how many 2nd runners up?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Original air date = February 16, 1999
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that originally aired on February 16, 1999?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Date = september 19, 1971 AND Week > 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance on September 19, 1971, after week 1?.It is not neccessary to use all the tables.
SELECT COUNT Milepost FROM table WHERE Name of the tunnel = twin tunnel #1 north
CREATE TABLE INST, Here is a database schema( table schema);
What is the Milepost of the Twin Tunnel #1 North?.It is not neccessary to use all the tables.
SELECT COUNT Sunk by U-Boat FROM table WHERE German submarines lost < 2 AND Sunk by aircraft = 56328 AND Sunk by mines > 8269
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines?.It is not neccessary to use all the tables.
SELECT Score, Id AS "post_link", CreationDate, Tags FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%<self-learning>%' AND (Tags LIKE '%<advice>%' OR Tags LIKE '%<soft-question>%' OR Tags LIKE '%<big-list>%' OR Tags LIKE '%<education>%' OR Tags LIKE '%<teaching>%' OR Tags = '<self-learning>' OR (NOT Body LIKE '%$%' AND ...
CREATE TABLE INST, Here is a database schema( table schema);
Soft [self-learning] questions without MathJax.It is not neccessary to use all the tables.
SELECT type_of_game FROM table_name_33 WHERE results¹ = "10:1"
CREATE TABLE INST, Here is a database schema( table schema);
What Type of game has a Results¹ of 10:1?It is not neccessary to use all the tables.
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian"
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2nd leg when Team 1 was Chicago Croatian?It is not neccessary to use all the tables.
SELECT District FROM table WHERE First elected = 1932
CREATE TABLE INST, Here is a database schema( table schema);
What district had someone first elected in 1932?.It is not neccessary to use all the tables.
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
CREATE TABLE INST, Here is a database schema( table schema);
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?It is not neccessary to use all the tables.
SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 2008"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the MySpace Band with an Original Airdate of 25 march 2008?It is not neccessary to use all the tables.
SELECT mountain_peak FROM table_name_16 WHERE rank < 6 AND location = "81.9083°n 75.0250°w"
CREATE TABLE INST, Here is a database schema( table schema);
Name the mountain peak with rank less than 6 abd location of 81.9083°n 75.0250°wIt is not neccessary to use all the tables.
SELECT population__2009_estimate_ FROM table_name_34 WHERE name = "northeast"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2009 estimate population of the Northeast?It is not neccessary to use all the tables.
SELECT skip FROM table_name_1 WHERE third = "steffen walstad"
CREATE TABLE INST, Here is a database schema( table schema);
Which skip's third is Steffen Walstad?It is not neccessary to use all the tables.
SELECT aggregate_score FROM table_name_66 WHERE opposition = "dynamo dresden"
CREATE TABLE INST, Here is a database schema( table schema);
What was the aggregate score for the game against Dynamo Dresden?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 404a
CREATE TABLE INST, Here is a database schema( table schema);
What was the title for the episode with the production code 404a?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE 2008 club = apure
CREATE TABLE INST, Here is a database schema( table schema);
Who was the 2008 club Apure?.It is not neccessary to use all the tables.
SELECT nickname FROM table_name_37 WHERE enrollment < 501 AND location = "clarkesville"
CREATE TABLE INST, Here is a database schema( table schema);
Which Nickname has an Enrollment smaller than 501 and a Location of clarkesville?It is not neccessary to use all the tables.
SELECT score FROM table_name_82 WHERE game = 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for game 5?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team = footscray
CREATE TABLE INST, Here is a database schema( table schema);
What date did Footscray play at home?.It is not neccessary to use all the tables.
SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106"
CREATE TABLE INST, Here is a database schema( table schema);
Which Format has a Catalog of vcrdx 106?It is not neccessary to use all the tables.
SELECT COUNT LMP1 Winning Team FROM table WHERE GT1 Winning Team = Peter Kox Roman Rusinov
CREATE TABLE INST, Here is a database schema( table schema);
When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?.It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE Season = 2007–08
CREATE TABLE INST, Here is a database schema( table schema);
In season 2007–08 who is the runner-up?.It is not neccessary to use all the tables.
SELECT opponents FROM table_name_51 WHERE date = "26 october 1889"
CREATE TABLE INST, Here is a database schema( table schema);
what was the opponent on 26 october 1889?It is not neccessary to use all the tables.
SELECT nation FROM table_name_88 WHERE bronze > 0 AND gold > 0 AND silver > 0 AND rank = "5"
CREATE TABLE INST, Here is a database schema( table schema);
Which nation has a bronze greater than 0 a gold greater than 0 a silver greater than 0 and 5 as the rank?It is not neccessary to use all the tables.
SELECT COUNT Early Chalcolithic FROM table WHERE Ubaid period in Mesopotamia = Hittite Middle Kingdom , New Kingdom of Egypt
CREATE TABLE INST, Here is a database schema( table schema);
When hittite middle kingdom , new kingdom of egypt is the ubaid period in mesopotamia how many early chalcolithics are there?.It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_40 WHERE team = "bultaco" AND rank = "6th"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did she have with team bultaco ranked 6th?It is not neccessary to use all the tables.
SELECT "Date of vacancy" FROM table_22614 WHERE "Position in table" = '23rd'
CREATE TABLE INST, Here is a database schema( table schema);
At what date did the 23rd manager vacate the position?It is not neccessary to use all the tables.
SELECT city FROM table_name_62 WHERE home_arena = "target center"
CREATE TABLE INST, Here is a database schema( table schema);
Which city includes the Target Center arena?It is not neccessary to use all the tables.
SELECT "Venue" FROM table_77837 WHERE "Home team" = 'essendon'
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Home team of essendon?It is not neccessary to use all the tables.
SELECT Winning score FROM table WHERE Runner(s)-up = robin walton
CREATE TABLE INST, Here is a database schema( table schema);
What is the winning scor of the tournament with Robin Walton as the runner-up?.It is not neccessary to use all the tables.
SELECT label FROM table_name_24 WHERE format = "stereo lp" AND catalog = "scyl-934,623"
CREATE TABLE INST, Here is a database schema( table schema);
What label uses the stereo LP for catalog scyl-934623?It is not neccessary to use all the tables.
SELECT record_medal_event FROM table_name_33 WHERE sport = "athletics" AND athlete = "robert garrett" AND medal_count < 3
CREATE TABLE INST, Here is a database schema( table schema);
What record medal event has athletics as the sport with robert garrett as the athlete and a medal count less than 3?It is not neccessary to use all the tables.
SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many Extra points have Touchdowns larger than 2 and Field goals larger than 0?It is not neccessary to use all the tables.
SELECT venue FROM table_name_41 WHERE date = "1 march 2006"
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Date of 1 march 2006?It is not neccessary to use all the tables.
SELECT Couple FROM table WHERE Total Score = 295
CREATE TABLE INST, Here is a database schema( table schema);
Which couple has 295 as a total score?.It is not neccessary to use all the tables.
SELECT "driver" FROM table_203_131 WHERE "pos." = 4
CREATE TABLE INST, Here is a database schema( table schema);
which driver earned 4th place ?It is not neccessary to use all the tables.
SELECT directed_by FROM table_26561498_1 WHERE production_code = 176452
CREATE TABLE INST, Here is a database schema( table schema);
who directed and produced 176452?It is not neccessary to use all the tables.
SELECT Military and/or Civilian wounded FROM table WHERE Civilian deaths = unknown AND Total deaths (not including foreigners) = unknown
CREATE TABLE INST, Here is a database schema( table schema);
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?.It is not neccessary to use all the tables.
SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "NEWBORN"
CREATE TABLE INST, Here is a database schema( table schema);
what is minimum age of patients whose gender is f and admission type is newborn?It is not neccessary to use all the tables.
SELECT Yankton-Yanktonai FROM table WHERE Southern Lakota = wičháša
CREATE TABLE INST, Here is a database schema( table schema);
Name the yankton yanktonai for wičháša.It is not neccessary to use all the tables.
SELECT COUNT(year) FROM table_103084_4 WHERE bbc_one_rank = "20th"
CREATE TABLE INST, Here is a database schema( table schema);
How many years did BBC One rank 20th?It is not neccessary to use all the tables.
SELECT ISBN FROM table WHERE Year = 1999
CREATE TABLE INST, Here is a database schema( table schema);
What is the ISBN in 1999?.It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_41 WHERE venue = "western oval"
CREATE TABLE INST, Here is a database schema( table schema);
What did the home team score when playing at Western Oval?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Place = t3 AND Player = seve ballesteros
CREATE TABLE INST, Here is a database schema( table schema);
What score did Seve Ballesteros have when he was in T3 place?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Score = 72-66-72=210
CREATE TABLE INST, Here is a database schema( table schema);
What Country had a Player with a Score of 72-66-72=210?.It is not neccessary to use all the tables.
SELECT Heat & Lane FROM table WHERE Name = thi hue pham
CREATE TABLE INST, Here is a database schema( table schema);
What heat and what lane is thi hue pham in?.It is not neccessary to use all the tables.
SELECT score FROM table_name_52 WHERE home = "detroit" AND decision = "legace" AND date = "december 3"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on December 3 when Detroit was the home team and Legace took the decision?It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Main presenter = Caroline Flack
CREATE TABLE INST, Here is a database schema( table schema);
What series have Caroline Flack as a main presenter?.It is not neccessary to use all the tables.
SELECT class_aAAAA FROM table_15315103_1 WHERE school_year = "1995-96"
CREATE TABLE INST, Here is a database schema( table schema);
Who is in class during 1995-96?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Septic shock"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients died of septic shock?It is not neccessary to use all the tables.
SELECT result FROM table_name_74 WHERE date = "november 27, 1994"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the Chiefs November 27 1994 game?It is not neccessary to use all the tables.
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200
CREATE TABLE INST, Here is a database schema( table schema);
Find all the films longer than 100 minutes or rated PG except those who cost more than 200 for replacement. List the titles.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Written by = Scott M. Gimple
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the episode that was written by Scott M. Gimple?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Date = june 1992
CREATE TABLE INST, Here is a database schema( table schema);
Which artist has a Spoofed title in June 1992?.It is not neccessary to use all the tables.
SELECT category FROM table_name_73 WHERE nominee_s_ = "john frank levey" AND year > 1995
CREATE TABLE INST, Here is a database schema( table schema);
What was the category of the award that John Frank Levey was nominated for after 1995?It is not neccessary to use all the tables.
SELECT Segment A FROM table WHERE Segment B = s awning
CREATE TABLE INST, Here is a database schema( table schema);
Which Segment A has a Segment B of s awning?.It is not neccessary to use all the tables.
SELECT january FROM table_27537870_6 WHERE decision = "Lalime"
CREATE TABLE INST, Here is a database schema( table schema);
If the decision was by Lalime when in January was it made?It is not neccessary to use all the tables.
SELECT Actor's Name FROM table WHERE Film Name = anastasiya slutskaya AND Country = russia
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the actor from russia for anastasiya slutskaya.It is not neccessary to use all the tables.
SELECT home FROM table_name_62 WHERE date = "january 24, 1947"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Home team on January 24 1947?It is not neccessary to use all the tables.
SELECT MAX Pennant Number FROM table WHERE Ships in class = pori
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pennant number with ships in pori class?.It is not neccessary to use all the tables.
SELECT "Score" FROM table_67079 WHERE "Visitor" = 'columbus'
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for columbus visitorIt is not neccessary to use all the tables.
SELECT Points against FROM table WHERE Points for = 743
CREATE TABLE INST, Here is a database schema( table schema);
was the the score when the tries was 743.It is not neccessary to use all the tables.
SELECT laws_against_homosexuality FROM table_name_34 WHERE country = "malaysia"
CREATE TABLE INST, Here is a database schema( table schema);
What are the laws against homosexuality in Malaysia?It is not neccessary to use all the tables.
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Tears for Fears" AND artist_2 = "Eric Prydz"
CREATE TABLE INST, Here is a database schema( table schema);
Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?It is not neccessary to use all the tables.
SELECT 1/8 Finals FROM table WHERE Round 1 = N/A
CREATE TABLE INST, Here is a database schema( table schema);
Name the 1/8 finals for round 1 n/a.It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Song = "viva rock 'n' roll" AND Draw > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of points for the song "viva rock 'n' roll", with more than 3 Draws?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = giants AND Date = may 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the team's record on may 12 when they play the giants?.It is not neccessary to use all the tables.
SELECT ReactorModel FROM nuclear_power_plants GROUP BY ReactorModel ORDER BY count(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( nuclear power plants);
What’s the most used nuclear reactor model?. It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Country = greece
CREATE TABLE INST, Here is a database schema( table schema);
Who is the athlete from greece?.It is not neccessary to use all the tables.
SELECT date FROM table_name_17 WHERE internet_explorer = "62.2%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date when internet explorer was 62.2%It is not neccessary to use all the tables.