Simple Question (Direct)
Simple Question
Q7797937
P86
Q502895
USER
Which person composed Three Young Texans ?
(Q7797937,P86,c(Q502895))
action filter_type
action find
entity Q7797937
relation P86
type Q502895
['Q7797937', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q7797937 property:P86 ?r }
Three Young Texans
action filter_type
action find
entity Three Young Texans
relation composer
type common name
['Three Young Texans', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Three_Young_Texans property:composer ?r }
[]
common name
Q1827266
SYSTEM
Lionel Newman
Q1827266
(Q7797937,P86,c(Q502895))
action filter_type
action find
entity Q7797937
relation P86
type Q502895
[ANSWER]
['Q7797937', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . resource:Q7797937 property:P86 ?r }
Lionel Newman
Lionel Newman
action filter_type
action find
entity Three Young Texans
relation composer
type common name
['Three Young Texans', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . resource:Three_Young_Texans property:composer ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7797937
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q1827266,P136,c(Q1792379))
action filter_type
action find
entity Q7797937
relation P136
type Q1792379
['Q1827266', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1792379 . resource:Q7797937 property:P136 ?a }
Three Young Texans
action filter_type
action find
entity Three Young Texans
relation genre
type art genre
['Lionel Newman', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:art_genre . resource:Three_Young_Texans property:genre ?a }
[]
art genre
Q172980
SYSTEM
Western
Q172980
(Q1827266,P136,c(Q1792379))
action filter_type
action find
entity Q7797937
relation P136
type Q1792379
[ANSWER]
['Q1827266', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1792379 . resource:Q7797937 property:P136 ?a }
Western
Western
action filter_type
action find
entity Three Young Texans
relation genre
type art genre
['Lionel Newman', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:art_genre . resource:Three_Young_Texans property:genre ?a }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P136
Q1792379 Q166142
USER
Which art genres are the genre for more number of applications than that art genre ?
(c(Q166142),P136,c(Q1792379))
action greater
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q166142
action count
action filter_type
action find
entity Q172980
relation P136
type Q1792379
[{'concept': 'Q166142'}, 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?g ) WHERE { ?r rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q166142 . ?y property:P136 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q172980 property:P136 ?s . ?s rdf:type ontology:Q1792379 } } . FILTER ( ?g > ?v ) }
action greater
action find_reverse_tuple_counts
relation genre
type art genre
type application
action count
action filter_type
action find
entity Western
relation genre
type art genre
[{'concept': 'application'}, 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?g ) WHERE { ?r rdf:type ontology:art_genre . ?y rdf:type ontology:application . ?y property:genre ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Western property:genre ?s . ?s rdf:type ontology:art_genre } } . FILTER ( ?g > ?v ) }
[]
art genre application
Q8261 Q1054574 Q590103
SYSTEM
novel, romance film, psychological thriller
Q590103 Q319221 Q725377 Q188473 Q5292 Q858330 Q200092 Q1425557 Q193606 Q7644030 Q1637212 Q10728648 Q2975633 Q8261 Q1464369 Q1054574 Q10992055 Q4184 Q6045390 Q185867 Q1004 Q223770 Q174526 Q6585139 Q186424 Q130232 Q2421031 Q604725
(c(Q166142),P136,c(Q1792379))
action greater
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q166142
action count
action filter_type
action find
entity Q172980
relation P136
type Q1792379
[ANSWERS]
[{'concept': 'Q166142'}, 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?g ) WHERE { ?r rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q166142 . ?y property:P136 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q172980 property:P136 ?s . ?s rdf:type ontology:Q1792379 } } . FILTER ( ?g > ?v ) }
psychological thriller adventure film graphic novel action film encyclopedia romance novel horror film vampire literature horror literature supernatural fiction Comic fantasy occult detective fiction coming-of-age story novel making-of romance film fantasy novel autobiography interactive novel film noir comic B movie cyberpunk mystery fiction detective fiction drama film neo-noir psychological horror
novel romance film psychological thriller
action greater
action find_reverse_tuple_counts
relation genre
type art genre
type application
action count
action filter_type
action find
entity Western
relation genre
type art genre
[{'concept': 'application'}, 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?g ) WHERE { ?r rdf:type ontology:art_genre . ?y rdf:type ontology:application . ?y property:genre ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Western property:genre ?s . ?s rdf:type ontology:art_genre } } . FILTER ( ?g > ?v ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q8261 Q1054574 Q590103
P136
Q15416
USER
Which television programs have novel, romance film and psychological thriller as genre ?
(c(Q15416),P136,Q8261) (c(Q15416),P136,Q1054574) (c(Q15416),P136,Q590103)
action union
action filter_type
action find_reverse
entity Q8261
relation P136
type Q15416
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q15416
action filter_type
action find_reverse
entity Q590103
relation P136
type Q15416
[{'concept': 'Q15416'}, 'P136', 'Q8261'] [{'concept': 'Q15416'}, 'P136', 'Q1054574'] [{'concept': 'Q15416'}, 'P136', 'Q590103']
SELECT DISTINCT ?q WHERE { VALUES ( ?p ) { ( resource:Q8261 ) ( resource:Q1054574 ) } . ?q property:P136 ?p }
novel romance film psychological thriller
action union
action filter_type
action find_reverse
entity novel
relation genre
type television program
action filter_type
action find_reverse
entity romance film
relation genre
type television program
action filter_type
action find_reverse
entity psychological thriller
relation genre
type television program
[{'concept': 'television program'}, 'genre', 'novel'] [{'concept': 'television program'}, 'genre', 'romance film'] [{'concept': 'television program'}, 'genre', 'psychological thriller']
SELECT DISTINCT ?q WHERE { VALUES ( ?p ) { ( resource:novel ) ( resource:romance_film ) } . ?q property:genre ?p }
[]
television program
Q1079 Q14902292 Q79784
SYSTEM
Breaking Bad, Ulice, Friends
Q981135 Q5337285 Q3234798 Q7723463 Q4997314 Q4004277 Q5750462 Q3476434 Q9026284 Q7193214 Q5098466 Q1543954 Q6929465 Q1200024 Q11293422 Q3535705 Q2521957 Q1049315 Q3369166 Q11610940 Q7730932 Q5432288 Q1211281 Q3456727 Q7721796 Q7340827 Q7898112 Q1212385 Q11392504 Q5291778 Q7721095 Q2622732 Q4660407 Q4839192 Q7767550 Q4658731 Q4080276 Q11160398 Q12019559 Q1428441 Q1656266 Q699643 Q3797497 Q7401892 Q659548 Q7810904 Q8356416 Q5364833 Q3282865 Q7435546 Q7993613 Q740339 Q2455207 Q1195326 Q16385609 Q6698514 Q15912080 Q1248825 Q11477467 Q1068865 Q428130 Q11491803 Q7092939 Q16903113 Q16645689 Q3222064 Q15805783 Q11336162 Q7460816 Q3224576 Q11625956 Q715289 Q2293306 Q689245 Q17324559 Q1996604 Q10332951 Q7752741 Q1710361 Q1285127 Q3660551 Q6480052 Q6835483 Q1068093 Q2582600 Q17226233 Q6813499 Q7637440 Q25944 Q11347383 Q11220158 Q17209906 Q11592392 Q3225697 Q1306485 Q8140365 Q4672610 Q7564755 Q11606673 Q491683 Q5469723 Q7467803 Q17228380 Q6944998 Q3063022 Q79784 Q18337092 Q11548730 Q650822 Q6831252 Q4655914 Q1132231 Q703733 Q15072117 Q7737769 Q7992916 Q4189382 Q17220893 Q2966030 Q15623624 Q2681931 Q14954099 Q20041601 Q6851096 Q1764361 Q6690658 Q10587517 Q7655370 Q1508797 Q6789637 Q5450099 Q7290601 Q18703099 Q7712749 Q17498897 Q873985 Q11340124 Q7722744 Q22283988 Q488652 Q488657 Q15642596 Q6945572 Q75391 Q830555 Q7882830 Q82094 Q3413923 Q705883 Q7716730 Q1523165 Q7775479 Q3633376 Q7230941 Q17215298 Q632532 Q5965650 Q22661197 Q7523877 Q11416253 Q18410863 Q18391664 Q7813109 Q6860873 Q23892885 Q1247309 Q17216392 Q7186440 Q484498 Q5976816 Q6797046 Q27728970 Q24053163 Q11580737 Q386680 Q1823183 Q18054542 Q1669676 Q14902292 Q6820414 Q7878699 Q6797000 Q1537484 Q836393 Q1069002 Q706372 Q17217763 Q8051181 Q370296 Q11491906 Q18611433 Q3712862 Q16690382 Q7774068 Q3494182 Q7038262 Q489617 Q7980650 Q5979686 Q483378 Q1546599 Q7116870 Q2164431 Q3281532 Q16565065 Q623458 Q486285 Q3905449 Q17190843 Q3064242 Q1069461 Q4657085 Q7586586 Q5367491 Q1853197 Q492123 Q17219642 Q17220239 Q5375850 Q75461 Q11492062 Q1091671 Q6935858 Q22261339 Q1462752 Q7522438 Q484695 Q1754224 Q4142279 Q1617111 Q485856 Q23832745 Q14655473 Q11639781 Q496338 Q11442228 Q1455083 Q6853212 Q18225702 Q9005867 Q894496 Q23594 Q23577 Q1628956 Q17781855 Q1107270 Q750205 Q18844729 Q912437 Q1079 Q15931555 Q2085 Q16468818 Q16253680
(c(Q15416),P136,Q8261) (c(Q15416),P136,Q1054574) (c(Q15416),P136,Q590103)
action union
action filter_type
action find_reverse
entity Q8261
relation P136
type Q15416
action filter_type
action find_reverse
entity Q1054574
relation P136
type Q15416
action filter_type
action find_reverse
entity Q590103
relation P136
type Q15416
[ANSWERS]
[{'concept': 'Q15416'}, 'P136', 'Q8261'] [{'concept': 'Q15416'}, 'P136', 'Q1054574'] [{'concept': 'Q15416'}, 'P136', 'Q590103']
SELECT DISTINCT ?q WHERE { VALUES ( ?p ) { ( resource:Q8261 ) ( resource:Q1054574 ) } . ?q property:P136 ?p }
Tarzan: The Epic Adventures RDG Red Data Girl The Life and Loves of a She-Devil The Cloning of Joanna May Bump in the Night The Machine Gunners Hi no Sakana Scream of the Shalka The Cotton Pickers Pig Heart Boy Children of My Heart Robbi, Tobbi und das Fliewatüüt Mr Stink No. 6 Overlord Close to Leo Simoun A Mother's Gift Kan du vissla Johanna? Seiken Tsukai no World Break The Dream Merchants Falling Die Bertinis Por Amarte Tanto The Cay Robbery Under Arms Up the Garden Path A Painted House Rokka no Yūsha Don't Look Behind You The Camomile Lawn The Mermaid Chair A Very British Coup Back When We Were Grownups The Survivor A Pattern of Roses The Ebony Tower Z for Zachariah Free! Gentle Ben I Heard the Owl Call My Name Candy Candy Mrs. 'Arris Goes to Paris Saint Maybe Die schwarzen Brüder To Dance with the White Dog Uchōten Kazoku Ellen Foster The Haunting of Toby Jugg Scotch on the Rocks While I Was Gone Ocean Waves Mnemosyne LOG HORIZON The Englishman's Boy Lucy Sullivan Is Getting Married Shinmai Maō no Testament Quatermass II Kawa no Hikari Chibi Vampire Sonic X Love My Bakrey One Mom and Three Dads Platonic Velvet Dad's Home Die Männer der Emden Propose Brothers Shadows of Desire The Christmas Blessing Ketsuekigata Betsu On'na ga Kkekkon suru Hōhō♪ Miss No Good Always and Forever Angels Fall Hirugao Carolina Moon Mrs. Delafield Wants to Marry The Music Man The Cutting Edge: Fire & Ice Soldier's Girl That Winter, The Wind Blows Lal Dupatta Malmal Ka Bad Woman, Good Woman Un Refugio para el Amor A Hundred Year Legacy God's Baby Melody of Youth Summer Solstice The Secret Diaries of Miss Anne Lister Love Revolution Slow Dance 30 Bu dake no Ai Fukuoka ren'aihakusho Dear Santa Disappearing Acts All About My Love Accidentally in Love Sound of Colors Kekkon Dōsōkai 〜 SEASIDE LOVE 〜 To the Beautiful You Forgotten Spring Love Kuro neko, tokidoki hanaya My Beloved The Cutting Edge: Going for the Gold Friends Cinderella Date Love Affair on Wednesday Una Maid en Manhattan First Wives' Club A Christmas Kiss Little Women Fated to Love You The Long Hot Summer The Great Gatsby 남자가 사랑할 때 Danielle Steel's Star Seijo Christmas in Connecticut Lost Days The Man I Love Second Generation Tokyo Sentimental Thousand Years of Love Blue Smoke Love In 3 Colors Molanders Sweet Hostage My Date with the President's Daughter Successful Story of a Bright Girl Fine Things Ran Samanalayo The Christmas Ornament The Affair Aim High Westler Mother & Lover The Christmas Card Sekaiichi muzukashī koi 49 Days The King 2 Hearts DARK SYSTEM My Girl Calling For Love Starstruck Uncle Urfi Splash Que la barque se brise, que la jonque s'entrouvre Hi My Sweetheart The Best Legs in the Eighth Grade Gideon's Daughter The Woman He Loved Dancing at the Harvest Moon New Tales of Gisaeng Tsuki ni inoru Piero Noah's Ark I'll Be Home for Christmas Watashi kekkon dekinai n janakute, shinai ndesu Single Princesses and Blind Dates Kimi no Hitomi ni Koishiteru! His and Her Christmas Neermaathalathinte pookkal Together Forever Twelve Men in a Year AKB Love Night Koi Kōjō If These Walls Could Talk 2 Betsuni Futsū no Koi Phir Subah Hogi Love Rain I Do (But I Don't) My Love By My Side Under the Greenwood Tree Sukinahito ga Iru Koto Hyaku-nen no Monogatari Full House The Christmas Hope Natsunoowari ni, koi o shita You'll Get Over It Ulice How to Meet a Perfect Neighbor Walang Hanggan My Lover, Madame Butterfly Good Advice Teen Wolf Higashi no Eden A Gentleman's Dignity Until I Become A Father Yeh Dil Chahe More Das Traumschiff Koi no Jikan A Royal Christmas Sundays at Tiffany's Mother Mother The Wedding Scheme Wuthering Heights Nine: Nine Time Travels Brilliant Legacy Welcome Rain to My Life I Was a Mail Order Bride Dream High Griffin and Phoenix P'tang, Yang, Kipperbang Truly, Madly The American Mall Hitched for the Holidays Cinderella's Sister Love Story in Harvard Pioneers in Ingolstadt Ao no Umi 〜 LONG SUMMER~ Duel of Hearts Triunfo del Amor A Golden Christmas Srugim Ai Nan de Iraneeyo, Natsu The Boy in the Plastic Bubble My Princess 姻緣獵人 L et M End of Summer Britannic Ren'ai hensachi Holiday in Handcuffs Mundo Mo'y Akin Kuro no Shamen The Girl in the Café Sineserye Presents The 1st Shop of Coffee Prince Ivanhoe Blue Lagoon: The Awakening Falling for a Dancer Rooftop Prince Hayako sensei, kekkon suru tte hontōdesuka? My Love From the Star Aitai Toki ni Anata wa Inai Queen In-Hyun's Man serchin'for my polestar Northanger Abbey Goodbye Solo (TV series) Ukai ni Koi Shita Natsu Bubu Jingqing Boss Homeland Dexter Mad Dogs Hand of God Psychoville Fail Safe Mr. Robot Damages Breaking Bad Fargo Twin Peaks The Leftovers No Place to Hide
Breaking Bad Ulice Friends
action union
action filter_type
action find_reverse
entity novel
relation genre
type television program
action filter_type
action find_reverse
entity romance film
relation genre
type television program
action filter_type
action find_reverse
entity psychological thriller
relation genre
type television program
[{'concept': 'television program'}, 'genre', 'novel'] [{'concept': 'television program'}, 'genre', 'romance film'] [{'concept': 'television program'}, 'genre', 'psychological thriller']
SELECT DISTINCT ?q WHERE { VALUES ( ?p ) { ( resource:novel ) ( resource:romance_film ) } . ?q property:genre ?p }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1079
P800
Q502895
USER
Whose notable work were that television program ?
(c(Q502895),P800,Q1079)
action filter_type
action find_reverse
entity Q1079
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q1079']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P800 resource:Q1079 }
Breaking Bad
action filter_type
action find_reverse
entity Breaking Bad
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Breaking Bad']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:notable_work resource:Breaking_Bad }
[]
common name
Clarification for simple ques.
Q79784
SYSTEM
Did you mean Friends ?
Q1079 Q14902292 Q79784
(c(Q502895),P800,Q1079) (c(Q502895),P800,Q14902292) (c(Q502895),P800,Q79784)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q1079'] [{'concept': 'Q502895'}, 'P800', 'Q14902292'] [{'concept': 'Q502895'}, 'P800', 'Q79784']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P800 resource:Q1079 }
Breaking Bad Ulice Friends
Did you mean Friends ?
Friends
[{'concept': 'common name'}, 'notable work', 'Breaking Bad'] [{'concept': 'common name'}, 'notable work', 'Ulice'] [{'concept': 'common name'}, 'notable work', 'Friends']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:notable_work resource:Breaking_Bad }
[]
Simple Question (Coreferenced)
USER
No, I meant Breaking Bad. Could you tell me the answer for that?
(c(Q502895),P800,Q1079)
Q1079
[{'concept': 'Q502895'}, 'P800', 'Q1079']
[{'concept': 'common name'}, 'notable work', 'Breaking Bad']
[]
Q5542223 Q7174311 Q10307893
SYSTEM
George Mastras, Peter Gould, John Shiban
Q6106965 Q13560657 Q10307893 Q5542223 Q7148714 Q7174311 Q7407299
(c(Q502895),P800,Q1079)
action filter_type
action find_reverse
entity Q1079
relation P800
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P800', 'Q1079']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P800 resource:Q1079 }
J. Roberts Moira Walley-Beckett John Shiban George Mastras Patty Lin Peter Gould Sam Catlin
George Mastras Peter Gould John Shiban
action filter_type
action find_reverse
entity Breaking Bad
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Breaking Bad']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:notable_work resource:Breaking_Bad }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1079
P57
Q15416
USER
Are those people a director of Breaking Bad ?
(Q1079,P57,Q5542223) (Q1079,P57,Q7174311) (Q1079,P57,Q10307893)
action is_in
entity prev_answer
action find
entity Q1079
relation P57
['Q1079', 'P57', 'Q5542223'] ['Q1079', 'P57', 'Q7174311'] ['Q1079', 'P57', 'Q10307893']
ASK WHERE { VALUES ( ?b ) { ( resource:Q6106965 ) ( resource:Q13560657 ) ( resource:Q10307893 ) } . resource:Q1079 property:P57 ?b }
Breaking Bad
action is_in
entity prev_answer
action find
entity Breaking Bad
relation director
['Breaking Bad', 'director', 'George Mastras'] ['Breaking Bad', 'director', 'Peter Gould'] ['Breaking Bad', 'director', 'John Shiban']
ASK WHERE { VALUES ( ?b ) { ( resource:J._Roberts ) ( resource:Moira_Walley-Beckett ) ( resource:John_Shiban ) } . resource:Breaking_Bad property:director ?b }
[]
television program
SYSTEM
YES
(Q1079,P57,Q5542223) (Q1079,P57,Q7174311) (Q1079,P57,Q10307893)
action is_in
entity prev_answer
action find
entity Q1079
relation P57
[ANSWER]
['Q1079', 'P57', 'Q5542223'] ['Q1079', 'P57', 'Q7174311'] ['Q1079', 'P57', 'Q10307893']
ASK WHERE { VALUES ( ?b ) { ( resource:Q6106965 ) ( resource:Q13560657 ) ( resource:Q10307893 ) } . resource:Q1079 property:P57 ?b }
Yes
action is_in
entity prev_answer
action find
entity Breaking Bad
relation director
['Breaking Bad', 'director', 'George Mastras'] ['Breaking Bad', 'director', 'Peter Gould'] ['Breaking Bad', 'director', 'John Shiban']
ASK WHERE { VALUES ( ?b ) { ( resource:J._Roberts ) ( resource:Moira_Walley-Beckett ) ( resource:John_Shiban ) } . resource:Breaking_Bad property:director ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q7174311
P58
Q15961987 Q15416
USER
How many television genres and television programs are Peter Gould a screwriter of ?
(c(Q15961987),P58,Q7174311) (c(Q15416),P58,Q7174311)
action count
action union
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15961987
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15416
[{'concept': 'Q15961987'}, 'P58', 'Q7174311'] [{'concept': 'Q15416'}, 'P58', 'Q7174311']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:P58 resource:Q7174311 . ?q rdf:type ontology:Q15961987 } UNION { ?q property:P58 resource:Q7174311 . ?q rdf:type ontology:Q15416 } }
Peter Gould
action count
action union
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television genre
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television program
[{'concept': 'television genre'}, 'screenwriter', 'Peter Gould'] [{'concept': 'television program'}, 'screenwriter', 'Peter Gould']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:screenwriter resource:Peter_Gould . ?q rdf:type ontology:television_genre } UNION { ?q property:screenwriter resource:Peter_Gould . ?q rdf:type ontology:television_program } }
[]
television genre television program
SYSTEM
1 television genres and 1 television programs
Q2473073 Q3147651
(c(Q15961987),P58,Q7174311) (c(Q15416),P58,Q7174311)
action count
action union
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15961987
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15416
[ANSWER]
[{'concept': 'Q15961987'}, 'P58', 'Q7174311'] [{'concept': 'Q15416'}, 'P58', 'Q7174311']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:P58 resource:Q7174311 . ?q rdf:type ontology:Q15961987 } UNION { ?q property:P58 resource:Q7174311 . ?q rdf:type ontology:Q15416 } }
Too Big to Fail A No-Rough-Stuff-Type Deal
1 television genres and 1 television programs
action count
action union
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television genre
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television program
[{'concept': 'television genre'}, 'screenwriter', 'Peter Gould'] [{'concept': 'television program'}, 'screenwriter', 'Peter Gould']
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { ?q property:screenwriter resource:Peter_Gould . ?q rdf:type ontology:television_genre } UNION { ?q property:screenwriter resource:Peter_Gould . ?q rdf:type ontology:television_program } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 469 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 469
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?u = 469 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 469
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?u = 469 ) }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 469
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?u = 469 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 469
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?u = 469 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7174311
P58
Q15416
USER
Which television program is Peter Gould a screenwriter of ?
(c(Q15416),P58,Q7174311)
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15416
[{'concept': 'Q15416'}, 'P58', 'Q7174311']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q7174311 . ?h rdf:type ontology:Q15416 }
Peter Gould
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television program
[{'concept': 'television program'}, 'screenwriter', 'Peter Gould']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Peter_Gould . ?h rdf:type ontology:television_program }
[]
television program
Q2473073
SYSTEM
Too Big to Fail
Q2473073
(c(Q15416),P58,Q7174311)
action filter_type
action find_reverse
entity Q7174311
relation P58
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P58', 'Q7174311']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q7174311 . ?h rdf:type ontology:Q15416 }
Too Big to Fail
Too Big to Fail
action filter_type
action find_reverse
entity Peter Gould
relation screenwriter
type television program
[{'concept': 'television program'}, 'screenwriter', 'Peter Gould']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Peter_Gould . ?h rdf:type ontology:television_program }
[]