sentence
stringlengths 3
347
| sql
stringlengths 18
804
|
---|---|
Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site? | SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = "MU, 2-1" |
What is the To Par of winning score 71-66-70-67=274? | SELECT to_par FROM table_name_52 WHERE winning_score = 71 - 66 - 70 - 67 = 274 |
What was the lowest overall for Louis Coleman? | SELECT MIN(overall) FROM table_name_91 WHERE player = "louis coleman" |
Show all game ids and the number of hours played. | SELECT gameid , sum(hours_played) FROM Plays_games GROUP BY gameid |
Player than won in 2003? | SELECT player FROM table_name_94 WHERE year_s__won = "2003" |
Name the most game with opponent of hartford whalers | SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers" |
How about those who teaches at least one course? | SELECT T1.address_line_1 , T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING Count ( * ) > = 1 |
List the point IDs and fines of the inspections done on 7th August 2010. | SELECT T2.point_id, T2.fine FROM inspection AS T1 INNER JOIN violation AS T2 ON T1.inspection_id = T2.inspection_id WHERE T1.inspection_date = '2010-08-07' |
What was the recorded flaps of HBR Motorsport team? | SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport" |
Find the physician who prescribed the highest dose. What is his or her name? | SELECT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician ORDER BY T2.dose DESC LIMIT 1 |
Names of browsers that are compartable with fasterfox? | SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox' |
What is the Density (hab/ km²) when the population (hab) is 58 414*? | SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*" |
What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals? | SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = "quarterfinals" |
What is the name of photo ID 280 | SELECT Name FROM PHOTOS where photo_id = 280 |
What is the average number of customers per sales person? | SELECT CAST(COUNT(T1.CustomerID) AS REAL) / COUNT(T3.EmployeeID) FROM Customers AS T1 INNER JOIN Sales AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN Employees AS T3 ON T2.SalesPersonID = T3.EmployeeID |
Of these employees, how many did not have a job in the past? | SELECT count ( * ) FROM employees WHERE employee_id NOT IN ( SELECT employee_id FROM job_history ) |
What's the Score with the Visitor of Montreal Maroons and has a Date of December 28? | SELECT score FROM table_name_45 WHERE visitor = "montreal maroons" AND date = "december 28" |
Name the least draw for elena dermidjean | SELECT MIN(draw) FROM table_14977252_2 WHERE artist = "Elena Dermidjean" |
What was the final result for Craig Hosmer? | SELECT result FROM table_1342013_5 WHERE incumbent = "Craig Hosmer" |
What is the Score, when the Country is United States, when the Place is T3, and when the Player is Chris Riley? | SELECT score FROM table_name_38 WHERE country = "united states" AND place = "t3" AND player = "chris riley" |
What is the average score for the movie Versailles Rive-Gauche? | SELECT AVG(T1.rating_score) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title LIKE 'Versailles Rive-Gauche' |
What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers? | SELECT T1.staff_name , T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name , T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id |
what is the age of Timothy Beckham | SELECT Age FROM player WHERE Player = "Timothy Beckham" |
What is the genre of the game "Mario vs. Donkey Kong"? | SELECT T1.genre_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T2.game_name = 'Mario vs. Donkey Kong' |
What is the result of the hypo-meeting before 2010? | SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting" |
What current conference is Post University a member of? | SELECT current_conference FROM table_12936521_2 WHERE institution = "Post University" |
Show all official native languages that contain the word "English". | SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%" |
Which professionals have done at least two types of treatments? List the professional id and cell phone. | SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2 |
List all the document names which contains "CV". | SELECT document_name FROM documents WHERE document_name LIKE "%CV%" |
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940? | SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940 |
actually i mean highest total amount | SELECT total FROM invoices order by total desc limit 1 |
Calculate the average price of products shipped to the UK. | SELECT AVG(UnitPrice) AS avg FROM Invoices WHERE Country = 'UK' |
Show me the medicine name which can interact as 'inhibitor'? | SELECT T1.name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' |
What's the 102kg when the Ri Song-Hui was 226kg? | SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = "226kg" |
Who is the candidates for district maryland 1? | SELECT candidates FROM table_2668416_7 WHERE district = "Maryland 1" |
Find the official names of cities with population bigger than 1500 or smaller than 500. | SELECT Official_Name FROM city WHERE Population > 1500 OR Population < 500 |
What is the Date of the game with an attendance of 72,051 after Week 9? | SELECT date FROM table_name_4 WHERE week > 9 AND attendance = "72,051" |
What is the result on Saturday that's রবিবার robibar on Sunday | SELECT saturday_shani__saturn_ FROM table_name_14 WHERE sunday_surya__the_sun_ = "রবিবার robibar" |
How many people were in attendance for the game with a score of 98–111? | SELECT SUM(attendance) FROM table_name_12 WHERE score = "98–111" |
What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73? | SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73 |
What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23? | SELECT primary__6_13_years_ FROM table_25042332_22 WHERE preschool__0_5_years_ = "50.23" |
Show the billing address with the highest amount of invoice? | SELECT billing_address FROM invoices ORDER BY total DESC LIMIT 1 |
Record of 89-67 had what loss? | SELECT loss FROM table_name_16 WHERE record = "89-67" |
How many different types of sports do we offer? | SELECT count(DISTINCT sportname) FROM Sportsinfo |
Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth? | SELECT result FROM table_name_22 WHERE venue = "away" AND game < 43 AND opponent = "bournemouth" |
How many movies have a popularity of more than 400 but less than 500? Indicate the name of the movies and the highest rating score each movie has received. | SELECT T1.movie_title, MAX(T2.rating_score) FROM movies AS T1 INNER JOIN ratings AS T2 ON T1.movie_id = T2.movie_id WHERE T1.movie_popularity BETWEEN 400 AND 500 GROUP BY T1.movie_title |
What are the address numbers that are located in Gansu district? | SELECT address_id FROM address WHERE district = 'Gansu' |
Show member names without any registered branch. | SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch) |
What is Result, when Date is "June 11, 1994", and when Venue is "Miami, United States"? | SELECT result FROM table_name_58 WHERE date = "june 11, 1994" AND venue = "miami, united states" |
Find the dates on which more than one revisions were made. | SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*) > 1 |
What is the low week from october 15, 1961? | SELECT MIN(week) FROM table_name_82 WHERE date = "october 15, 1961" |
Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id. | SELECT T1.first_name , T1.middle_name , T1.last_name , T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING count(*) = 2 |
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1? | SELECT MAX(gold) FROM table_name_16 WHERE total < 3 AND rank = "5" AND silver > 1 |
In the Bay Area, what is the most common type of food served by restaurants? | SELECT T2.food_type FROM geographic AS T1 INNER JOIN generalinfo AS T2 ON T1.city = T2.city WHERE T1.region = 'bay area' GROUP BY T2.food_type ORDER BY COUNT(T2.food_type) DESC LIMIT 1 |
Who is the athlete from greece? | SELECT athlete FROM table_name_13 WHERE country = "greece" |
WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW? | SELECT country FROM table_name_93 WHERE transfer_window = "summer" |
What is the short name for the journal that published the paper "A Case of Unilateral Ashy Dermatosis"? | SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = 'A Case of Unilateral Ashy Dermatosis' |
What is the video ratio on channel 14.2? | SELECT video FROM table_name_75 WHERE channel = 14.2 |
What is Power, when Identifier is CBEB-FM? | SELECT power FROM table_name_48 WHERE identifier = "cbeb-fm" |
What is the number of games played for the team with 12 points and an against smaller than 52? | SELECT AVG(played) FROM table_name_59 WHERE points = 12 AND against < 52 |
How many unofficial languages are used in Italy? | SELECT SUM(CASE WHEN T2.IsOfficial = 'F' THEN 1 ELSE 0 END) FROM Country AS T1 INNER JOIN CountryLanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = 'Italy' |
What is the total surface area of the continents Asia and Europe? | SELECT sum(SurfaceArea) FROM country WHERE Continent = "Asia" OR Continent = "Europe" |
What is the most popular payment method? | SELECT Payment_Method_Code FROM Payments GROUP BY Payment_Method_Code ORDER BY COUNT(*) DESC LIMIT 1 |
What was the result of the event against Nate Mohr? | SELECT res FROM table_name_57 WHERE opponent = "nate mohr" |
What is the death date of the archbishop who was ordained as bishop April 26, 1927? | SELECT died FROM table_1656555_1 WHERE ordained_bishop = "April 26, 1927" |
When риба (ríba) is the macedonian what is the proto-slavic? | SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)" |
what heat number had a time of 58.44? | SELECT COUNT(heat) FROM table_name_49 WHERE time = "58.44" |
What is the Position with a round 3 pick for r. jay soward? | SELECT position FROM table_name_20 WHERE round < 3 AND name = "r. jay soward" |
How many films titled Gie have been nominated? | SELECT COUNT(original_title) FROM table_13719788_1 WHERE film_title_used_in_nomination = "Gie" |
Which player finished at +10? | SELECT player FROM table_name_57 WHERE to_par = "+10" |
How many universities got less than 50 scores under ranking criteria ID 6 in 2011? | SELECT COUNT(*) FROM university_ranking_year WHERE ranking_criteria_id = 6 AND year = 2011 AND score < 50 |
Show me all the films which listed in the table? | There are the titles of all the films. | Show me all films longer than 100 minutes? | SELECT title FROM film WHERE LENGTH > 100 |
How many opponents were there at the game with 64,087 people in attendance? | SELECT COUNT(opponent) FROM table_11465521_2 WHERE attendance = "64,087" |
How many different kinds of lens brands are there? | SELECT count(DISTINCT brand) FROM camera_lens |
What is the product description of the product booked with an amount of 102.76? | SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76 |
Find the name of all the clubs at "AKW". | SELECT clubname FROM club WHERE clublocation = "AKW" |
What assets have been aquired? | What kind of information about the assets do you want me to return? | Can you tell me the date each asset was aquired? | SELECT asset_acquired_date FROM Assets |
How many customers are still active? | SELECT COUNT(customer_id) FROM customer WHERE active = 1 |
Return the full name of the staff who provided a customer with the first name April and the last name Burns with a film rental. | SELECT DISTINCT T1.first_name , T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS' |
What were the years the building with 44 floors was tallest? | SELECT years_as_tallest FROM table_name_53 WHERE floors = "44" |
Who sanctioned the event at fayette county speedway? | SELECT sanction FROM table_16275828_4 WHERE track_name = "Fayette County Speedway" |
What is the percentage of the complaint calls from Mr Mason Javen Lopez has got the consent provided by the customer? | SELECT CAST(SUM(CASE WHEN T2.`Consumer consent provided?` = 'Consent provided' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.`Consumer consent provided?`) FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.sex = 'Male' AND T1.first = 'Mason' AND T1.middle = 'Javen' AND T1.last = 'Lopez' |
What is the smallest rank for passengers more than 73,754? | SELECT MIN(rank) FROM table_name_45 WHERE passengers > 73 OFFSET 754 |
what is the percentage of male voters where the level of maturity is 123726 | SELECT e_vap_ratio_total FROM table_25042332_30 WHERE men_of_voting_age = 123726 |
What was the vote when the air date is 4 october 1997? | SELECT vote FROM table_25016824_2 WHERE air_date = "4 October 1997" |
what average grid has laps larger than 52 and contains the driver of andrea de adamich? | SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich" |
Find the name of rooms whose price is higher than the average price. | SELECT roomName FROM Rooms WHERE basePrice > ( SELECT avg(basePrice) FROM Rooms ); |
What are the names of the airports associated with each number of routes? | SELECT T1.name, count ( * ) FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name |
What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? | SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = "1950 british grand prix" |
What is the institution's name of american students within the number of degree-seeking students in the cohort that ranges from 1 to 3? | SELECT DISTINCT T1.chronname FROM institution_details AS T1 INNER JOIN institution_grads AS T2 ON T2.unitid = T1.unitid WHERE T2.grad_cohort BETWEEN 1 AND 3 AND T2.race = 'Ai' |
What are the id and name of the museum visited most times? | SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1 |
What is the country of origin of the artist who is female and produced a song in Bangla? | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" |
Which Callsign includes a frequency under 1210, Newsradio 740 KTRH, and webcasts with listen live? | SELECT callsign FROM table_name_97 WHERE webcast = "listen live" AND frequency < 1210 AND brand = "newsradio 740 ktrh" |
What is the url for repository that has the longest processed time solution? | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Solution ) |
Team 2 of Yokohama F. Marinos in the n/a venue had what score? | SELECT score FROM table_name_90 WHERE venue = "n/a" AND team_2 = "yokohama f. marinos" |
How many countries are there on the list? | select count ( Country ) from perpetrator |
What is the role code with the largest number of employees? | SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 |
Name the english gloss for naháŋȟčiŋ | SELECT english_gloss FROM table_1499791_2 WHERE southern_lakota = "naháŋȟčiŋ" |
Find the last and first name of students who are playing Football or Lacrosse. | SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse" |
Among the female users of the devices, how many of them are under 30? | SELECT COUNT(device_id) FROM gender_age WHERE age < 30 AND gender = 'F' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.