sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood" | CREATE TABLE INST, Here is a database schema( table schema); | What did the away team score when they were playing collingwood?It is not neccessary to use all the tables. |
SELECT team FROM table_name_8 WHERE owner_s_ = "mark smith" AND crew_chief = "paul clapprood" | CREATE TABLE INST, Here is a database schema( table schema); | What team is owned by Mark Smith and has Paul Clapprood as a crew chief?It is not neccessary to use all the tables. |
SELECT AVG Total votes FROM table WHERE # of seats won < 0 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the average Total votes that has the # of seats won smaller than 0?.It is not neccessary to use all the tables. |
SELECT COUNT Round2 FROM table WHERE Round5 > 35 AND Round3 < 51 AND Team = netherlands AND Rank < 2 | CREATE TABLE INST, Here is a database schema( table schema); | what is round2 when round5 is more than 35, round3 is less than 51, the rank is smaller than 2 and the team is netherlands?.It is not neccessary to use all the tables. |
SELECT title FROM table_name_98 WHERE characters = "daffy (as duck dodgers)" | CREATE TABLE INST, Here is a database schema( table schema); | What title has daffy (as duck dodgers) as the character?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.days_stay > "2" AND lab.label = "Anion Gap" | CREATE TABLE INST, Here is a database schema( table schema); | among patients who had a hospital stay for more than 2 days, how many of them were tested for anion gap?It is not neccessary to use all the tables. |
SELECT opponent FROM table_23346983_1 WHERE record = "5-1" | CREATE TABLE INST, Here is a database schema( table schema); | Who did the Orangemen play against when their record was 5-1?It is not neccessary to use all the tables. |
SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment" | CREATE TABLE INST, Here is a database schema( table schema); | How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Round < 2 AND Method = ko (knee to the body) | CREATE TABLE INST, Here is a database schema( table schema); | What is the time before round 2, and the ko (knee to the body) method?.It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE CFL Team = Edmonton | CREATE TABLE INST, Here is a database schema( table schema); | What position was the player who was drafted by Edmonton?.It is not neccessary to use all the tables. |
SELECT releaseType FROM torrents GROUP BY releaseType ORDER BY sum(totalSnatched) DESC LIMIT 1 | CREATE TABLE INST, Here is a database schema( torrents); | Which kind of release type is the most popular?. It is not neccessary to use all the tables. |
SELECT Owner FROM table WHERE 2012 = 5.42 | CREATE TABLE INST, Here is a database schema( table schema); | What is the owner of the channel that has a 2012 rating of 5.42?.It is not neccessary to use all the tables. |
SELECT country FROM table_name_18 WHERE player = "retief goosen" | CREATE TABLE INST, Here is a database schema( table schema); | What country is Retief Goosen from?It is not neccessary to use all the tables. |
SELECT score FROM table_name_10 WHERE visitor = "winnipeg jets" AND date = "april 7" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score that has a Winnipeg Jets as Visitor on april 7?It is not neccessary to use all the tables. |
SELECT college_junior_club_team__league_ FROM table_name_58 WHERE nationality = "switzerland" | CREATE TABLE INST, Here is a database schema( table schema); | Which College/junior/club team (league) was the player from Switzerland from?It is not neccessary to use all the tables. |
SELECT COUNT Date FROM table WHERE Round = 10 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of date for 10.It is not neccessary to use all the tables. |
SELECT Countries Visited FROM table WHERE Episode No. < 7 AND Writer = ray gosling | CREATE TABLE INST, Here is a database schema( table schema); | Which countries visited had an episode number of less than 7 when Ray Gosling was the writer?.It is not neccessary to use all the tables. |
SELECT 2008 FROM table_name_89 WHERE 2006 = "year-end championship" | CREATE TABLE INST, Here is a database schema( table schema); | What is the 2008 result when 2006 is Year-End Championship?It is not neccessary to use all the tables. |
SELECT modified_hp FROM table_19704392_1 WHERE standard_torque__lb_ft_ = "11.53" | CREATE TABLE INST, Here is a database schema( table schema); | When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?It is not neccessary to use all the tables. |
SELECT County, SUM(Enrollment) FROM School GROUP BY County ORDER BY County | CREATE TABLE INST, Here is a database schema( table schema); | Compare the total enrollment in each county with a bar chart, and list by the names from low to high please.It is not neccessary to use all the tables. |
SELECT county FROM table_10586064_2 WHERE total = "18,900 (R)" | CREATE TABLE INST, Here is a database schema( table schema); | What country had the total 18900 (r)?It is not neccessary to use all the tables. |
SELECT T2.year FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city WHERE T1.city = "Taizhou ( Zhejiang )" | CREATE TABLE INST, Here is a database schema( table schema); | IN which year did city 'Taizhou ( Zhejiang )' serve as a host city?It is not neccessary to use all the tables. |
SELECT location FROM table_15346009_1 WHERE tournament = "Outback Steakhouse Pro-Am" | CREATE TABLE INST, Here is a database schema( table schema); | Where was Outback Steakhouse Pro-AM held?It is not neccessary to use all the tables. |
SELECT AVG Total Convictions FROM table WHERE Fraud (Art. 146 StGB) = 1,521 AND Year < 2006 | CREATE TABLE INST, Here is a database schema( table schema); | Which year earlier than 2006 has the average Total Convictions of Fraud at 1,521?.It is not neccessary to use all the tables. |
SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48" | CREATE TABLE INST, Here is a database schema( table schema); | How many directors directed an episode that reached 2.48 million viewers?It is not neccessary to use all the tables. |
SELECT COUNT Attendance FROM table WHERE Opponent = clemson | CREATE TABLE INST, Here is a database schema( table schema); | How many people attended the game against Clemson?.It is not neccessary to use all the tables. |
SELECT ihsaa_class FROM table_name_3 WHERE school = "tipton" | CREATE TABLE INST, Here is a database schema( table schema); | What is the IHSAA class for Tipton?It is not neccessary to use all the tables. |
SELECT "Venue" FROM table_33309 WHERE "Year" > '1991' AND "Bronze" = 'czech republic' AND "Silver" = 'russia' | CREATE TABLE INST, Here is a database schema( table schema); | Where was the post 1991 tournament where the Czech Republic received the bronze and Russia received the silver?It is not neccessary to use all the tables. |
SELECT MAX Home runs FROM table WHERE Team = cleveland indians AND Year < 1931 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the highest home runs for cleveland indians years before 1931.It is not neccessary to use all the tables. |
SELECT COUNT(hosted) FROM table_name_85 WHERE average = 27 OFFSET 638 | CREATE TABLE INST, Here is a database schema( table schema); | How many were hosted whene the average attendance was 27638?It is not neccessary to use all the tables. |
SELECT method FROM table_name_68 WHERE opponent = "travis fulton" | CREATE TABLE INST, Here is a database schema( table schema); | Which method had Travis Fulton as an opponent?It is not neccessary to use all the tables. |
SELECT COUNT Opponent FROM table WHERE Location = Yangon, Myanmar | CREATE TABLE INST, Here is a database schema( table schema); | If the location is Yangon, Myanmar, what is the opponent total number?.It is not neccessary to use all the tables. |
SELECT Original air date FROM table WHERE Title = "Duet for One" | CREATE TABLE INST, Here is a database schema( table schema); | When did the episode title "Duet For One" air?.It is not neccessary to use all the tables. |
SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan" | CREATE TABLE INST, Here is a database schema( table schema); | How many players named paddy rowan?It is not neccessary to use all the tables. |
SELECT Notes FROM table WHERE Time = 3:19.167 | CREATE TABLE INST, Here is a database schema( table schema); | What are the notes for the time at 3:19.167?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_65 WHERE date = "december 19" | CREATE TABLE INST, Here is a database schema( table schema); | what team scored on december 19It is not neccessary to use all the tables. |
SELECT Position FROM table WHERE School/Club Team = kansas | CREATE TABLE INST, Here is a database schema( table schema); | What position in the club team of Kansas?.It is not neccessary to use all the tables. |
SELECT money___$__ FROM table_name_46 WHERE player = "chris riley" | CREATE TABLE INST, Here is a database schema( table schema); | What is Chris Riley's Money?It is not neccessary to use all the tables. |
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai" | CREATE TABLE INST, Here is a database schema( table schema); | what is the released when the series is sorted 6y/ai?It is not neccessary to use all the tables. |
SELECT MAX(goals) FROM table_name_74 WHERE team = "getafe cf" | CREATE TABLE INST, Here is a database schema( table schema); | For Getafe CF what is the highest number of goals scored?It is not neccessary to use all the tables. |
SELECT COUNT Points FROM table WHERE Rank = 5 AND Games > 34 | CREATE TABLE INST, Here is a database schema( table schema); | How many points are there for rank 5 with more than 34 games?.It is not neccessary to use all the tables. |
SELECT MAX Crowd FROM table WHERE Away team = st kilda | CREATE TABLE INST, Here is a database schema( table schema); | What is the largest crowd for an Away team of st kilda?.It is not neccessary to use all the tables. |
SELECT Previous School FROM table WHERE # = 22 | CREATE TABLE INST, Here is a database schema( table schema); | What was the previous school of #22?.It is not neccessary to use all the tables. |
SELECT COUNT(time) FROM table_name_15 WHERE nationality = "slovenia" AND lane < 9 | CREATE TABLE INST, Here is a database schema( table schema); | What was the 200-metre time for the swimmer from Slovenia in lane 9?It is not neccessary to use all the tables. |
SELECT game FROM table_name_22 WHERE opponent = "phoenix suns" | CREATE TABLE INST, Here is a database schema( table schema); | Which Game has an Opponent of phoenix suns?It is not neccessary to use all the tables. |
SELECT UK Base FROM table WHERE Airborne Unit = pathfinders | CREATE TABLE INST, Here is a database schema( table schema); | Which UK Base has an airborne unit of Pathfinders?.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Away = 1–2 | CREATE TABLE INST, Here is a database schema( table schema); | Which Season has an Away of 1–2?.It is not neccessary to use all the tables. |
SELECT payment_method_code, COUNT(payment_method_code) FROM Customers GROUP BY payment_method_code | CREATE TABLE INST, Here is a database schema( table schema); | Show the proportion of the number of customers for each payment method code in a pie chart.It is not neccessary to use all the tables. |
SELECT Leading scorer FROM table WHERE Date = february 25 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the leading scorer on the game played on February 25?.It is not neccessary to use all the tables. |
SELECT * FROM table_test_26 WHERE renal_disease = 1 OR creatinine_clearance_cl < 30 | CREATE TABLE INST, Here is a database schema( table schema); | severe renal insufficiency ( creatinine clearance < 30 ml / min )It is not neccessary to use all the tables. |
SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = "3rd" | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of song for scoreboard being 3rdIt is not neccessary to use all the tables. |
SELECT high_rebounds FROM table_23274514_7 WHERE record = "17-33" | CREATE TABLE INST, Here is a database schema( table schema); | Name the high rebounds for 17-33It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE OWGR points > 6 AND Winner = ryu hyun-woo | CREATE TABLE INST, Here is a database schema( table schema); | What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?.It is not neccessary to use all the tables. |
SELECT COUNT(directed_by) FROM table_28760804_1 WHERE us_viewers__million_ = "6.79" | CREATE TABLE INST, Here is a database schema( table schema); | How many directors got 6.79 million U.S. viewers from their episodes?It is not neccessary to use all the tables. |
SELECT height__f_ FROM table_23670057_6 WHERE player = "Demond Greene" | CREATE TABLE INST, Here is a database schema( table schema); | Name the height of demond greeneIt is not neccessary to use all the tables. |
SELECT MAX Goals¹ FROM table | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest number of goals scored.It is not neccessary to use all the tables. |
SELECT COUNT No. FROM table WHERE Hometown = Canton, Illinois | CREATE TABLE INST, Here is a database schema( table schema); | How many values for number occur with the hometown of Canton, Illinois?.It is not neccessary to use all the tables. |
SELECT driver FROM table_name_18 WHERE year = "1955" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the driver in 1955?It is not neccessary to use all the tables. |
SELECT player FROM table_name_73 WHERE round < 3 AND position = "(g)" | CREATE TABLE INST, Here is a database schema( table schema); | Which player has fewer than 3 rounds and the position of (g)?It is not neccessary to use all the tables. |
SELECT COUNT Total FROM table WHERE Bronze = 4 AND Silver > 6 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of total for bronze of 4 and silver more than 6.It is not neccessary to use all the tables. |
SELECT score_points FROM table_name_9 WHERE event = "og beijing" AND rank_points = "olympic gold medalist" | CREATE TABLE INST, Here is a database schema( table schema); | Which Score points has an Event of og beijing and Rank points of olympic gold medalist?It is not neccessary to use all the tables. |
SELECT COUNT(top_5) FROM table_name_40 WHERE top_25 = 6 AND cuts_made < 12 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Top-5 when the Top-25 is 6 and a Cuts made are less than 12?It is not neccessary to use all the tables. |
SELECT COUNT Attendance FROM table WHERE Date = october 8 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of attendance for october 8.It is not neccessary to use all the tables. |
SELECT employee_id, salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam') | CREATE TABLE INST, Here is a database schema( table schema); | display the employee id and salary of all employees who report to Payam (first name).It is not neccessary to use all the tables. |
SELECT home_team AS score FROM table_name_30 WHERE away_team = "hawthorn" | CREATE TABLE INST, Here is a database schema( table schema); | What did the home team score against the away team Hawthorn?It is not neccessary to use all the tables. |
SELECT name FROM table_name_53 WHERE games = 105 | CREATE TABLE INST, Here is a database schema( table schema); | Which Name has Games of 105?It is not neccessary to use all the tables. |
SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey" | CREATE TABLE INST, Here is a database schema( table schema); | Which DOB has Throws of r and a Position of c and a First of torey?It is not neccessary to use all the tables. |
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊" | CREATE TABLE INST, Here is a database schema( table schema); | Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Goals > 0 AND Tries < 12 | CREATE TABLE INST, Here is a database schema( table schema); | Which player has more than 0 goals and less than 12 tries?.It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Opponent = brøndby | CREATE TABLE INST, Here is a database schema( table schema); | Which Home has an Opponent of brøndby?.It is not neccessary to use all the tables. |
SELECT Wheel arrangement FROM table WHERE Year made = 1910 | CREATE TABLE INST, Here is a database schema( table schema); | What wheel arrangement was made in 1910?.It is not neccessary to use all the tables. |
SELECT Name FROM table WHERE Overall < 268 AND Round = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What name has an overall less than 268, and 1 as the round?.It is not neccessary to use all the tables. |
SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club" | CREATE TABLE INST, Here is a database schema( table schema); | In what location was a stadium built for the St Kilda Football Club?It is not neccessary to use all the tables. |
SELECT "Children per donor" FROM table_20602 WHERE "Allowed recipients" = 'Married or in cohabitation' | CREATE TABLE INST, Here is a database schema( table schema); | What are the children per donor in the country where the allowed recipients are married or in cohabitation?It is not neccessary to use all the tables. |
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007" | CREATE TABLE INST, Here is a database schema( table schema); | Name the average attendance with result of won 2-0 on 2 november 2007It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE release date = 2011-12-01 december 2011 | CREATE TABLE INST, Here is a database schema( table schema); | What is Title, when Release Date is 2011-12-01 December 2011?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_64 WHERE high_assists = "rajon rondo (12)" AND high_points = "paul pierce (27)" | CREATE TABLE INST, Here is a database schema( table schema); | What is Score when High Assists is "Rajon Rondo (12)" and when High Points is "Paul Pierce (27)"?It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_6 WHERE venue = "punt road oval" | CREATE TABLE INST, Here is a database schema( table schema); | Which team was the away team when the game was at punt road oval?It is not neccessary to use all the tables. |
SELECT _percentage_of_all FROM table_name_52 WHERE dennis_kucinich = "5%" | CREATE TABLE INST, Here is a database schema( table schema); | What is % of All when Dennis Kucinich is "5%"?It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Date = september 8, 1985 | CREATE TABLE INST, Here is a database schema( table schema); | What was the result of the September 8, 1985 game?.It is not neccessary to use all the tables. |
SELECT queens FROM table_1108394_24 WHERE richmond_[staten_is] = "42_percentage" | CREATE TABLE INST, Here is a database schema( table schema); | What is the queens where richmond staten is 42%?It is not neccessary to use all the tables. |
SELECT Year Joined FROM table WHERE IHSAA Class Football = aa AND School = park tudor | CREATE TABLE INST, Here is a database schema( table schema); | Which year did park tudor school join IHSAA class AA?.It is not neccessary to use all the tables. |
SELECT winner FROM table_name_86 WHERE stage = "ss2" | CREATE TABLE INST, Here is a database schema( table schema); | What was Stage SS2's Winner?It is not neccessary to use all the tables. |
SELECT COUNT("Filipino") FROM table_15934 WHERE "Indian" = '30947' | CREATE TABLE INST, Here is a database schema( table schema); | How many States have an Indian population of 30947?It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE Place = t6 AND Country = united states | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the player with t6 as his place and a country of United states?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Date = december 11 | CREATE TABLE INST, Here is a database schema( table schema); | What is the record on December 11?.It is not neccessary to use all the tables. |
SELECT constructor FROM table_name_42 WHERE driver = "piercarlo ghinzani" AND engine = "ford cosworth dfv 3.0 v8" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Constructor for driver Piercarlo Ghinzani and a Ford cosworth dfv 3.0 v8 engine?It is not neccessary to use all the tables. |
SELECT COUNT No. in season FROM table WHERE US viewers (millions) = 5.0 | CREATE TABLE INST, Here is a database schema( table schema); | How many episodes had the us viewers (millions) figure of 5.0?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 | CREATE TABLE INST, Here is a database schema( table schema); | What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?It is not neccessary to use all the tables. |
SELECT COUNT College FROM table WHERE Player = Jerome Pathon | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of colleges for jerome pathon.It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Series # = 626 | CREATE TABLE INST, Here is a database schema( table schema); | Who directed episode number 626 in the series?.It is not neccessary to use all the tables. |
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300" | CREATE TABLE INST, Here is a database schema( table schema); | How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?It is not neccessary to use all the tables. |
SELECT Tournament FROM table WHERE Winning score = 68-67-65-66=266 | CREATE TABLE INST, Here is a database schema( table schema); | In what tournament was the winning score 68-67-65-66=266?.It is not neccessary to use all the tables. |
SELECT COUNT(match_no) FROM table_19072602_5 WHERE team_europe = "Osku Palermaa" | CREATE TABLE INST, Here is a database schema( table schema); | When osku palermaa is on the europe team how many match numbers are there?It is not neccessary to use all the tables. |
SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = "ADO520BIAA5DO" | CREATE TABLE INST, Here is a database schema( table schema); | What is the frequency of the model whose part number is ado520biaa5do?It is not neccessary to use all the tables. |
SELECT original_air_date FROM table_26808178_3 WHERE us_viewers__millions_ = "0.871" | CREATE TABLE INST, Here is a database schema( table schema); | Which original air date had 0.871 U.S. viewers (millions)?It is not neccessary to use all the tables. |
SELECT Sector FROM table WHERE Incorporated < 1983 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sector of the company with an incorporated date before 1983?.It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE No. in season = 11 | CREATE TABLE INST, Here is a database schema( table schema); | Name who wrote the 11 number in the season.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_66 WHERE date = "november 20, 1995" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the opponent of the game played on November 20 1995?It is not neccessary to use all the tables. |
SELECT nickname FROM table_262508_1 WHERE institution = "Concordia University, Nebraska" | CREATE TABLE INST, Here is a database schema( table schema); | What is the nickname of the institution from Concordia University Nebraska?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.