Simple Question (Direct)
Simple Question
Q115975
P39
Q12737077
USER
Which occupation was a position occupied by Norbert Brunner ?
(Q115975,P39,c(Q12737077))
action filter_type
action find
entity Q115975
relation P39
type Q12737077
['Q115975', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q115975 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
Norbert Brunner
action filter_type
action find
entity Norbert Brunner
relation position held
type occupation
['Norbert Brunner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Norbert_Brunner property:position_held ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q115975,P39,c(Q12737077))
action filter_type
action find
entity Q115975
relation P39
type Q12737077
[ANSWER] was a position occupied by Norbert Brunner
['Q115975', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q115975 property:P39 ?o . ?o rdf:type ontology:Q12737077 }
bishop
Bishop was a position occupied by Norbert Brunner
bishop
action filter_type
action find
entity Norbert Brunner
relation position held
type occupation
['Norbert Brunner', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Norbert_Brunner property:position_held ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29182
P361
Q151885
USER
What is that occupation a part of ?
(Q29182,P361,c(Q151885))
action filter_type
action find
entity Q29182
relation P361
type Q151885
['Q29182', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q151885 . resource:Q29182 property:P361 ?b }
bishop
action filter_type
action find
entity bishop
relation part of
type concept
['bishop', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:concept . resource:bishop property:part_of ?b }
[]
concept
Q177826
SYSTEM
clergy
Q177826
(Q29182,P361,c(Q151885))
action filter_type
action find
entity Q29182
relation P361
type Q151885
That occupation a part of is a [ANSWER]
['Q29182', 'P361', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q151885 . resource:Q29182 property:P361 ?b }
clergy
That occupation a part of is a clergy
clergy
action filter_type
action find
entity bishop
relation part of
type concept
['bishop', 'part of', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:concept . resource:bishop property:part_of ?b }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P136
Q151885 Q166142 Q2088357
USER
Which concepts can be considered as category for max number of applications or musical ensembles ?
(c(Q166142)|c(Q2088357),P136,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q166142
action find_reverse_tuple_counts
relation P136
type Q151885
type Q2088357
[[{'concept': 'Q166142'}, {'concept': 'Q2088357'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:Q166142 ) ( ontology:Q2088357 ) } . ?f rdf:type ?x } GROUP BY ?v } } . FILTER ( ?d = ?s ) . { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:Q166142 ) ( ontology:Q2088357 ) } } GROUP BY ?n } }
action argmax
action union
action find_reverse_tuple_counts
relation genre
type concept
type application
action find_reverse_tuple_counts
relation genre
type concept
type musical ensemble
[[{'concept': 'application'}, {'concept': 'musical ensemble'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:application ) ( ontology:musical_ensemble ) } . ?f rdf:type ?x } GROUP BY ?v } } . FILTER ( ?d = ?s ) . { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:application ) ( ontology:musical_ensemble ) } } GROUP BY ?n } }
[]
concept application musical ensemble
Q3071
SYSTEM
punk rock
Q3071
(c(Q166142)|c(Q2088357),P136,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q166142
action find_reverse_tuple_counts
relation P136
type Q151885
type Q2088357
[ANSWER] can be considered as category for max number of applications or musical ensembles
[[{'concept': 'Q166142'}, {'concept': 'Q2088357'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:Q166142 ) ( ontology:Q2088357 ) } . ?f rdf:type ?x } GROUP BY ?v } } . FILTER ( ?d = ?s ) . { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:Q166142 ) ( ontology:Q2088357 ) } } GROUP BY ?n } }
punk rock
Punk rock can be considered as category for max number of applications or musical ensembles
punk rock
action argmax
action union
action find_reverse_tuple_counts
relation genre
type concept
type application
action find_reverse_tuple_counts
relation genre
type concept
type musical ensemble
[[{'concept': 'application'}, {'concept': 'musical ensemble'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:application ) ( ontology:musical_ensemble ) } . ?f rdf:type ?x } GROUP BY ?v } } . FILTER ( ?d = ?s ) . { SELECT DISTINCT ?n ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ?z . VALUES ( ?z ) { ( ontology:application ) ( ontology:musical_ensemble ) } } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q3071
P27 P136
Q502895
USER
Which people have punk rock as genre and are civilians of United States of America ?
AND((c(Q502895),P136,Q3071), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q3071
relation P136
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P136', 'Q3071'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q3071 . ?m property:P27 resource:Q30 . ?m rdf:type ontology:Q502895 }
United States of America punk rock
action filter_type
action intersection
action find_reverse
entity punk rock
relation genre
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'genre', 'punk rock'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?m WHERE { ?m property:genre resource:punk_rock . ?m property:country_of_citizenship resource:United_States_of_America . ?m rdf:type ontology:common_name }
[]
common name
Q5515324 Q6283394 Q366900 Q258498 Q4912821 Q928579 Q6214563 Q5981525 Q237497 Q6670574
SYSTEM
Some of them are Gabe Crate, Joseph Genaro, Tommy Ramone, Wendy O. Williams, Billy Karren, Matt Lukin, Joey Slutman, Ian Flannon Taylor, Cherie Currie, London May
Q543039 Q444446 Q2579371 Q533404 Q6670574 Q503710 Q7804016 Q7925862 Q5262544 Q6096556 Q16220978 Q4961458 Q3637960 Q430905 Q6681044 Q1350102 Q4679543 Q16232374 Q3952870 Q237497 Q5489059 Q6174669 Q3614176 Q375390 Q16195022 Q3311856 Q585874 Q16019491 Q661662 Q6768598 Q7172160 Q6208042 Q6283394 Q7192296 Q16205980 Q328330 Q3176961 Q5347609 Q5523951 Q4960952 Q7822434 Q3714589 Q6846492 Q6202865 Q6175102 Q979460 Q5644499 Q16843301 Q258498 Q366900 Q7561759 Q654317 Q6812913 Q2266243 Q23465031 Q23014953 Q6184545 Q5606497 Q7812728 Q3940983 Q454573 Q2659366 Q924668 Q7613153 Q2471276 Q6988331 Q16199433 Q16215067 Q1683982 Q744528 Q2940972 Q3993267 Q349101 Q6173702 Q16218589 Q6317543 Q1207295 Q6397461 Q5907736 Q17505062 Q3476484 Q3942874 Q5650584 Q1324255 Q6214298 Q1110593 Q5277899 Q21621117 Q4264989 Q16185487 Q2827997 Q1173226 Q10539436 Q6765644 Q551161 Q712187 Q265202 Q1616465 Q712834 Q4911097 Q3952872 Q4910786 Q713521 Q7260379 Q1464721 Q6254588 Q177111 Q7838960 Q1294100 Q4823179 Q4373185 Q6227540 Q6437916 Q16735156 Q2601849 Q3395879 Q2465689 Q1338154 Q2545626 Q273407 Q7331406 Q2081921 Q3067338 Q7983926 Q1141275 Q7172130 Q6642141 Q6210154 Q7436098 Q704955 Q2880397 Q5092503 Q5981525 Q961489 Q713333 Q16215897 Q1608297 Q1618038 Q7702228 Q792976 Q23497922 Q1191027 Q17859754 Q446477 Q3855180 Q506558 Q1386876 Q6232907 Q7908495 Q16212795 Q1333356 Q7356987 Q1262698 Q5534354 Q4714072 Q712592 Q6112829 Q2256087 Q2485489 Q16215419 Q16012872 Q674942 Q3675559 Q589944 Q5212819 Q7927561 Q6846574 Q23533811 Q7039600 Q2526231 Q6829078 Q6178357 Q2924475 Q4923839 Q275607 Q714201 Q334288 Q2542713 Q941700 Q5922098 Q6209545 Q4761341 Q285312 Q5214444 Q5203636 Q7152765 Q15126096 Q942680 Q3611467 Q1339675 Q928579 Q7705442 Q377813 Q5115751 Q312387 Q946110 Q456922 Q6214563 Q3901709 Q2756486 Q3990559 Q3640038 Q6208458 Q16240903 Q16241268 Q2335614 Q2571504 Q335807 Q6174638 Q18685582 Q13561705 Q5106185 Q756563 Q5229738 Q4760584 Q2056661 Q15521205 Q5515324 Q6767438 Q4584366 Q16731448 Q1626593 Q1935670 Q7803873 Q586229 Q722566 Q19957859 Q317262 Q2734850 Q5214341 Q5748559 Q5454536 Q433265 Q1779120 Q2530101 Q1676573 Q5312757 Q3809744 Q5619205 Q2631800 Q6773756 Q2702058 Q4975006 Q6488662 Q3046493 Q7143402 Q242608 Q15455069 Q3616259 Q3616540 Q366719 Q6078890 Q2592889 Q931450 Q956081 Q4912821 Q3809306 Q346607 Q7822007 Q4050290 Q6271592 Q3813331 Q3751890 Q3810326 Q543484 Q4978293 Q351187 Q5606212 Q1064284 Q1057003 Q747585 Q8009898 Q5214526 Q16018980 Q4933896 Q514254 Q6848884
AND((c(Q502895),P136,Q3071), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q3071
relation P136
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWERS] have punk rock as genre and are civilians of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P136', 'Q3071'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?m WHERE { ?m property:P136 resource:Q3071 . ?m property:P27 resource:Q30 . ?m rdf:type ontology:Q502895 }
Penelope Houston Richard Manitoba Sascha Konietzko Dave Smalley London May Tim Armstrong Tim Mullen Victor Dominicis Derf Scratch Ivan Julian Rick Johnson Brent Liles Ben Weasel Tim McIlrath Lori Barbero Eric Melvin Adam Nathanson Rome Ramirez Scott Shiflett Cherie Currie Frank Portman Jeff Penalty Amery Smith Justin Mauriello Dan Cunneen Mickey Leigh Pete Parada Tim Mooney Matt Freeman Mark Lind Pete Mittler Jody Bleyle Joseph Genaro Pierre Kezdy Jason Crane Derek Grant Jemina Pearl Efrem Schulz Garrett Uhlenbrock Brendan Kelly Tony Gilkyson Doug Carrion Mike Davenport Jinx Titanic Jeff Suffering Jonny Wickersham Hamell on Trial Teri Gender Bender Wendy O. Williams Tommy Ramone Sonia Tetlow Joe Principe Melissa York Jay Bentley Patti Palladin Rob Graves Jerry Trebotic Gregg Armen Todd Youth Ron Reyes Marky Ramone Poison Ivy Mike Watt Steve Lieberman Ron Welty Neil Burke Kevin Bivona Johnny Rioux Jason Sears D. Boon Casey Chaos Tony Lombardo Jason White Jeff Dean Dave Klein Justin Duerr Dez Cadena Kevin Seconds Ian North Robert Lee Davidson Scruffy Wallace Russ Rankin Hans Orifice El Hefe Joey Bustos Nick Traina Dinah Cancer Jakob Danger Brad Logan John D Morton Aimee Allen Dave Hause James Lilja Marissa Paternoster C. J. Ramone Greg Hetson Sandy West Carlos Cadona Richie Ramone Bill Taft Scott Sorry Bill Schneider Mike Ness Punk Bunny Warren Fitzgerald John Reis Bill Stevenson Trever Keith Gábor Szakácsi Austin Lucas John Porcelly John Crawford Kristian Hoffman Scott Reynolds Darby Crash Leslie Hardy Greg Kriesel Jeremy Davis Brett Reed Vicki Peterson Rick Froberg Brix Smith Mitch Allan Wesley Geer Randy Bradbury Pete Mazich Chris Higgins Joe Haggerty Scott Campbell Clem Burke Jackie Fox Cherry Vanilla Ian Flannon Taylor Dennis Danell Ryan Sinn Theo Logian Pamela Racine Fred Smith Teresa Taylor Benji Madden Deerfrance Scott Raynor Chris Barrows Patricia Morrison Merle Allin Brett Gurewitz Jason Thirsk John Fell Vaginal Davis Joe Raposo Stiv Bators Rodney Linderman Duane Peters Geoff Useless Alec Baillie Billie Joe Armstrong Jack Grisham Jim Lindberg Mia Zapata Mark McCoy Stefanie Sargent Matt Wachter Chris Rest Erik Sandin Damon DeLaPaz Victory Tischler-Blue Mike Dimkich Ed Tomney Nippleus Erectus Chuck Biscuits Michael Campbell Jennifer Goodridge Brent Harding Blag Dahlia Ella Guru Dan Andriano Jello Biafra Ali Tabatabaee Matty Lewis Howie Pyro Joe Doherty Andy Stamets Tom Verlaine Dan Stevens D. J. Bonebrake Paul O'Beirne Chris D. Calvin Johnson Alfredo Ortiz Wayne Kramer Matt Lukin Tesco Vee Justin Sane Chuck Treece Joey Ramone Jive Jones Exene Cervenka Joey Slutman Phranc Cheetah Chrome Thom Wilson Billy Falcon Joe Baiza Nathan Burke Jack Dalrymple Noodles Joe Escalante Ron Asheton Jeff Ott Marie Currie Kaia Wilson Chris Clavin Joel Madden Dave Rubinstein Andy DeMize Jason Cruz James Calvin Wilsey Gabe Crate Mark Durante Jeff Dahl Heather Lewis Jeff Pezzati Milo Aukerman Tim Madison Jerry Finn Zach Blair Yonatan Gat Johnny Ramone Jerry Nolan Dan Sartain Laura Jane Grace Fish Karma Martin Rev Ted Leo Pete Finestone Tony Sly Duke Decter Johnny Bonnel Gunner McGrath Bradley Nowell Marshall Rohner Fred Sablan Brooks Headley Laramie Dean East Bay Ray Pat Dubar Kathleen Hanna Benjamin Smoke Andrew Freeman Andy Granelli GG Allin Rose Mazzola Lux Interior John Feldmann Lars Frederiksen Billy Karren John Haggerty Dee Dee Ramone Tony Cadena Stza Jon Snodgrass Kate Schellenbach Frank Navetta Josh Portman Karl Alvarez Bruce Slesinger Adam Willard Greg Sage Sean Mackin The Rev Zoltán Téglás William Gilmore Weber Dan Vapid Lisa Faye Beatty Bob Schmidt George Hurley Mike Soucy
Gabe Crate, Joseph Genaro, Tommy Ramone, Wendy O. Williams, Billy Karren, Matt Lukin, Joey Slutman, Ian Flannon Taylor, Cherie Currie and London May have punk rock as genre and are civilians of United States of America
Gabe Crate Joseph Genaro Tommy Ramone Wendy O. Williams Billy Karren Matt Lukin Joey Slutman Ian Flannon Taylor Cherie Currie London May
action filter_type
action intersection
action find_reverse
entity punk rock
relation genre
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'genre', 'punk rock'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?m WHERE { ?m property:genre resource:punk_rock . ?m property:country_of_citizenship resource:United_States_of_America . ?m rdf:type ontology:common_name }
[]