Simple Question (Direct)
Simple Question
Q1141519
P462
Q1075
USER
Which color is associated with The Hills Have Eyes ?
(Q1141519,P462,c(Q1075))
action filter_type
action find
entity Q1141519
relation P462
type Q1075
['Q1141519', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1075 . resource:Q1141519 property:P462 ?p }
The Hills Have Eyes
action filter_type
action find
entity The Hills Have Eyes
relation color
type color
['The Hills Have Eyes', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:color . resource:The_Hills_Have_Eyes property:color ?p }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q1141519,P462,c(Q1075))
action filter_type
action find
entity Q1141519
relation P462
type Q1075
[ANSWER] is associated with The Hills Have Eyes
['Q1141519', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1075 . resource:Q1141519 property:P462 ?p }
color
Color is associated with The Hills Have Eyes
color
action filter_type
action find
entity The Hills Have Eyes
relation color
type color
['The Hills Have Eyes', 'color', {'concept': 'color'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:color . resource:The_Hills_Have_Eyes property:color ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1141519
P161
Q502895
USER
Which people are in that work of art ?
(Q22006653,P161,c(Q502895))
action filter_type
action find
entity Q1141519
relation P161
type Q502895
['Q22006653', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1141519 property:P161 ?t . ?t rdf:type ontology:Q502895 }
The Hills Have Eyes
action filter_type
action find
entity The Hills Have Eyes
relation cast member
type common name
['color', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:The_Hills_Have_Eyes property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
common name
Q2633389 Q433520 Q446968
SYSTEM
Gregory Nicotero, Ted Levine, Billy Drago
Q354031 Q215523 Q433520 Q1756113 Q725247 Q266888 Q236696 Q302786 Q446968 Q443891 Q981765 Q2633389
(Q22006653,P161,c(Q502895))
action filter_type
action find
entity Q1141519
relation P161
type Q502895
[ANSWERS] are in that work of art
['Q22006653', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1141519 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Tom Bower Emilie de Ravin Ted Levine Desmond Askew Robert Joy Vinessa Shaw Kathleen Quinlan Aaron Stanford Billy Drago Dan Byrd Michael Bailey Smith Gregory Nicotero
Gregory Nicotero, Ted Levine and Billy Drago are in that work of art
Gregory Nicotero Ted Levine Billy Drago
action filter_type
action find
entity The Hills Have Eyes
relation cast member
type common name
['color', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:The_Hills_Have_Eyes property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q22006653 Q1075
P462
Q201658
USER
How many film genres have color color or color ?
(c(Q201658),P462,Q22006653) (c(Q201658),P462,Q1075)
action count
action union
action filter_type
action find_reverse
entity Q22006653
relation P462
type Q201658
action filter_type
action find_reverse
entity Q1075
relation P462
type Q201658
[{'concept': 'Q201658'}, 'P462', 'Q22006653'] [{'concept': 'Q201658'}, 'P462', 'Q1075']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?u ) { ( resource:Q22006653 ) ( resource:Q1075 ) } . ?w property:P462 ?u }
color color
action count
action union
action filter_type
action find_reverse
entity color
relation color
type film genre
action filter_type
action find_reverse
entity color
relation color
type film genre
[{'concept': 'film genre'}, 'color', 'color'] [{'concept': 'film genre'}, 'color', 'color']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:color resource:color . ?w rdf:type ontology:film_genre } UNION { ?w property:color resource:color . ?w rdf:type ontology:film_genre } }
[]
film genre
SYSTEM
78
Q2349825 Q159870 Q736938 Q1956391 Q3051577 Q2219678 Q458802 Q44408 Q1215996 Q749153 Q797106 Q2866952 Q2452327 Q2484820 Q18209024 Q2939739 Q15813405 Q504053 Q16672466 Q5699364 Q27671620 Q3507598 Q18398561 Q1458430 Q825197 Q1143107 Q325120 Q6469989 Q3146396 Q10323681 Q22073948 Q20050222 Q767366 Q3987284 Q17040507 Q1336881 Q1200974 Q277435 Q4788863 Q2095700 Q1264168 Q1218820 Q2061710 Q4660499 Q1179100 Q1217867 Q10261374 Q257798 Q1206788 Q4462298 Q7768250 Q1768289 Q1868118 Q26869689 Q746323 Q1218152 Q10381782 Q15733028 Q1783701 Q1440760 Q615466 Q3522236 Q1133887 Q1557388 Q26156111 Q3046664 Q1146308 Q15710490 Q12125016 Q3197023 Q22075050 Q5739182 Q26156112 Q26156110 Q7741034 Q26156116 Q26156117 Q26156114
(c(Q201658),P462,Q22006653) (c(Q201658),P462,Q1075)
action count
action union
action filter_type
action find_reverse
entity Q22006653
relation P462
type Q201658
action filter_type
action find_reverse
entity Q1075
relation P462
type Q201658
[ANSWER]
[{'concept': 'Q201658'}, 'P462', 'Q22006653'] [{'concept': 'Q201658'}, 'P462', 'Q1075']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { VALUES ( ?u ) { ( resource:Q22006653 ) ( resource:Q1075 ) } . ?w property:P462 ?u }
The Smurfs: A Christmas Carol Rambo Partly Cloudy My Grandmother Ironed the King's Shirts Elmer Elephant Mater and the Ghostlight The Madagascar Penguins in a Christmas Caper Captain EO The Tortoise and the Hare Geri's Game BURN-E Assassin's Creed: Embers Blood and Sand Music Land Kali the Little Vampire Carne The Lady in Number 6 Ocean's Twelve Wild Tales Heiko To Build a Fire Farmyard Symphony Frozen Fever Flowers and Trees Elephants Dream Three Orphan Kittens Toyland Lady Blue Shanghai I'll See You in My Dreams Morning of Saint Anthony's Day Everything Will Be Okay Bent Martyrs of the Alamo The Glorious Adventure The Old Man of Belem Oktapodi Destino 9 Arena Brave Little Tailor Dug's Special Mission The Wise Little Hen The Cookie Carnival A Visit to the Seaside Monterey Pop The Old Mill Cravos de Abril Apple Jack Your Friend the Rat Trevor The Tee Bird Mortal Kombat: Rebirth Logorama Before the Flood Lifted Three Little Pigs The Silencing Party Central A Grand Day Out Runaway Brain Boundin' The Pied Piper Der Fuehrer's Face The Danish Poet The Rats Starcrossed The Pink Phink Mr Hublot Imaginary Larry King Neptune Ave Maria Heritage of the Desert Road to Hell Pasternak The Hunt The Deal Till Death Do Us Part Bombita
78
action count
action union
action filter_type
action find_reverse
entity color
relation color
type film genre
action filter_type
action find_reverse
entity color
relation color
type film genre
[{'concept': 'film genre'}, 'color', 'color'] [{'concept': 'film genre'}, 'color', 'color']
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { ?w property:color resource:color . ?w rdf:type ontology:film_genre } UNION { ?w property:color resource:color . ?w rdf:type ontology:film_genre } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q446968 Q2722402
P19
Q56061
USER
How many administrative territories are the places of birth of Billy Drago or Abhinandananatha ?
(Q446968,P19,c(Q56061)) (Q2722402,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q446968
relation P19
type Q56061
action filter_type
action find
entity Q2722402
relation P19
type Q56061
['Q446968', 'P19', {'concept': 'Q56061'}] ['Q2722402', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { VALUES ( ?x ) { ( resource:Q446968 ) ( resource:Q2722402 ) } . ?x property:P19 ?t }
Billy Drago Abhinandananatha
action count
action union
action filter_type
action find
entity Billy Drago
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Abhinandananatha
relation place of birth
type administrative territorial entity
['Billy Drago', 'place of birth', {'concept': 'administrative territorial entity'}] ['Abhinandananatha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { VALUES ( ?x ) { ( resource:Billy_Drago ) ( resource:Abhinandananatha ) } . ?x property:place_of_birth ?t }
[]
administrative territorial entity
SYSTEM
2
Q1004784 Q186040
(Q446968,P19,c(Q56061)) (Q2722402,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q446968
relation P19
type Q56061
action filter_type
action find
entity Q2722402
relation P19
type Q56061
[ANSWER]
['Q446968', 'P19', {'concept': 'Q56061'}] ['Q2722402', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { VALUES ( ?x ) { ( resource:Q446968 ) ( resource:Q2722402 ) } . ?x property:P19 ?t }
Hugoton Ayodhya
2
action count
action union
action filter_type
action find
entity Billy Drago
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Abhinandananatha
relation place of birth
type administrative territorial entity
['Billy Drago', 'place of birth', {'concept': 'administrative territorial entity'}] ['Abhinandananatha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { VALUES ( ?x ) { ( resource:Billy_Drago ) ( resource:Abhinandananatha ) } . ?x property:place_of_birth ?t }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q244976
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than bodhrán ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q244976 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?i > ?k ) }
bodhrán
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:bodhrán property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?k ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q244976
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than bodhrán
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?e rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q244976 property:P1303 ?z . ?z rdf:type ontology:Q34379 } } . FILTER ( ?i > ?k ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot can greater number of people perform with than bodhrán
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity bodhrán
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?i ) WHERE { ?e property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?e rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:bodhrán property:instrument ?z . ?z rdf:type ontology:musical_instrument } } . FILTER ( ?i > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1024685
P1303
Q34379 Q502895
USER
And also tell me about cabasa?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1024685
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P1303 ?i . ?j rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q1024685 property:P1303 ?e } } . FILTER ( ?q > ?d ) }
cabasa
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cabasa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:instrument ?i . ?j rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:musical_instrument . resource:cabasa property:instrument ?e } } . FILTER ( ?q > ?d ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1024685
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P1303 ?i . ?j rdf:type ontology:Q502895 . ?i rdf:type ontology:Q34379 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q1024685 property:P1303 ?e } } . FILTER ( ?q > ?d ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity cabasa
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:instrument ?i . ?j rdf:type ontology:common_name . ?i rdf:type ontology:musical_instrument } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:musical_instrument . resource:cabasa property:instrument ?e } } . FILTER ( ?q > ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q3305213
USER
How many paintings demonstrate approximately 1 musical instrument ?
(c(Q3305213),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q3305213
type Q34379
value 1
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?v ) WHERE { ?z property:P180 ?l . ?l rdf:type ontology:Q34379 . ?z rdf:type ontology:Q3305213 } GROUP BY ?z } }
action count
action approx
action find_tuple_counts
relation depicts
type painting
type musical instrument
value 1
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?v ) WHERE { ?z property:depicts ?l . ?l rdf:type ontology:musical_instrument . ?z rdf:type ontology:painting } GROUP BY ?z } }
[]
musical instrument painting
SYSTEM
5
Q22570045 Q24090417 Q20081287 Q17189257 Q26972426
(c(Q3305213),P180,c(Q34379))
action count
action approx
action find_tuple_counts
relation P180
type Q3305213
type Q34379
value 1
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?v ) WHERE { ?z property:P180 ?l . ?l rdf:type ontology:Q34379 . ?z rdf:type ontology:Q3305213 } GROUP BY ?z } }
Picture clock with Alster panorama Sleep that knits up the ravell'd sleeve of care The Sideboard Brita at the Piano Architectural Fantasy in the Style of Pompeii
5
action count
action approx
action find_tuple_counts
relation depicts
type painting
type musical instrument
value 1
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { FILTER ( ?v = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?v ) WHERE { ?z property:depicts ?l . ?l rdf:type ontology:musical_instrument . ?z rdf:type ontology:painting } GROUP BY ?z } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q34379 Q386724
USER
Which works depict min number of musical instruments ?
(c(Q386724),P180,c(Q34379))
action argmin
action find_tuple_counts
relation P180
type Q386724
type Q34379
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?x ) WHERE { ?r property:P180 ?l . ?r rdf:type ontology:Q386724 . ?l rdf:type ontology:Q34379 } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?w ) WHERE { ?g property:P180 ?z . ?g rdf:type ontology:Q386724 . ?z rdf:type ontology:Q34379 } GROUP BY ?g } . FILTER ( ?w = ?h ) }
action argmin
action find_tuple_counts
relation depicts
type work
type musical instrument
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?x ) WHERE { ?r property:depicts ?l . ?r rdf:type ontology:work . ?l rdf:type ontology:musical_instrument } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?w ) WHERE { ?g property:depicts ?z . ?g rdf:type ontology:work . ?z rdf:type ontology:musical_instrument } GROUP BY ?g } . FILTER ( ?w = ?h ) }
[]
musical instrument work
Q18676635 Q20668011 Q18602499
SYSTEM
Splatter Analysis, Funerary stele of Thalea, Mountain Stream, Yemen Valley, Palestine
Q27266011 Q18818942 Q20018619 Q18822501 Q3227124 Q7604478 Q18822442 Q20655984 Q23301843 Q27245162 Q3842557 Q25351982 Q16961954 Q20668011 Q20668010 Q18760514 Q20667952 Q20018598 Q18350631 Q208120 Q7772874 Q20035907 Q20012212 Q20012204 Q20012272 Q20012219 Q577890 Q1638622 Q11725617 Q27783590 Q2410932 Q1684762 Q18602499 Q18676635 Q3000066 Q3387593 Q20667955 Q20655689 Q17986845 Q20667953 Q18397036 Q1213160 Q2619037 Q7884355 Q2908939
(c(Q386724),P180,c(Q34379))
action argmin
action find_tuple_counts
relation P180
type Q386724
type Q34379
[ANSWERS]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?x ) WHERE { ?r property:P180 ?l . ?r rdf:type ontology:Q386724 . ?l rdf:type ontology:Q34379 } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?w ) WHERE { ?g property:P180 ?z . ?g rdf:type ontology:Q386724 . ?z rdf:type ontology:Q34379 } GROUP BY ?g } . FILTER ( ?w = ?h ) }
Robin Hood The Holy Family in a Landscape Procession of the Panathenaic festival Tarquinius and Lucretia le serment du jeu de paume Statue of Clement X Portrait of Gabriel-Charles Bidault Georgiana Spencer, Duchess of Devonshire La Trace du lièvre Hidalgo The Virgin and Child with Saint Andrew and Saint Peter Labyrinth Disney Partners Statue Funerary stele of Thalea Funerary banquet Entombment of Christ Hunt scene, known as "Alexander's hunt" Plaque of the Ergastines I'm too sad to tell you caryatid The Vision of Constantine Sacrifice of a goat Female head Banquet scene Panther Griffin Alexamenos graffito Adoration of the Magi George Washington Melancholy My God, Help Me to Survive This Deadly Love Manchester Madonna Mountain Stream, Yemen Valley, Palestine Splatter Analysis Lycurgus Cup Unfinished Portrait of General Bonaparte Funerary stele of Adea and Thrãson Unfinished painting Mae West Lips Sofa Apparition of the Dioscuri at a banquet Landscape with castle The Entombment Portrait of Madame Récamier Unfinished portrait of Franklin D. Roosevelt Bois Protat
Splatter Analysis, Funerary stele of Thalea and Mountain Stream, Yemen Valley, Palestine depict min number of musical instruments
Splatter Analysis Funerary stele of Thalea Mountain Stream, Yemen Valley, Palestine
action argmin
action find_tuple_counts
relation depicts
type work
type musical instrument
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?x ) WHERE { ?r property:depicts ?l . ?r rdf:type ontology:work . ?l rdf:type ontology:musical_instrument } GROUP BY ?r } } . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?w ) WHERE { ?g property:depicts ?z . ?g rdf:type ontology:work . ?z rdf:type ontology:musical_instrument } GROUP BY ?g } . FILTER ( ?w = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q862501 Q201735
P1303
Q502895
USER
How many people plays ondes Martenot or triangle ?
(c(Q502895),P1303,Q862501) (c(Q502895),P1303,Q201735)
action count
action union
action filter_type
action find_reverse
entity Q862501
relation P1303
type Q502895
action filter_type
action find_reverse
entity Q201735
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q862501'] [{'concept': 'Q502895'}, 'P1303', 'Q201735']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?g ) { ( resource:Q862501 ) ( resource:Q201735 ) } . ?j property:P1303 ?g }
ondes Martenot triangle
action count
action union
action filter_type
action find_reverse
entity ondes Martenot
relation instrument
type common name
action filter_type
action find_reverse
entity triangle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', 'ondes Martenot'] [{'concept': 'common name'}, 'instrument', 'triangle']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?g ) { ( resource:ondes_Martenot ) ( resource:triangle ) } . ?j property:instrument ?g }
[]
common name
SYSTEM
3
Q2965965 Q3162021 Q45909
(c(Q502895),P1303,Q862501) (c(Q502895),P1303,Q201735)
action count
action union
action filter_type
action find_reverse
entity Q862501
relation P1303
type Q502895
action filter_type
action find_reverse
entity Q201735
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q862501'] [{'concept': 'Q502895'}, 'P1303', 'Q201735']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?g ) { ( resource:Q862501 ) ( resource:Q201735 ) } . ?j property:P1303 ?g }
Christine Ott Janine de Waleyne John Cale
3
action count
action union
action filter_type
action find_reverse
entity ondes Martenot
relation instrument
type common name
action filter_type
action find_reverse
entity triangle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', 'ondes Martenot'] [{'concept': 'common name'}, 'instrument', 'triangle']
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { VALUES ( ?g ) { ( resource:ondes_Martenot ) ( resource:triangle ) } . ?j property:instrument ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q903885
P1445
Q838948 Q386724
USER
Which works of art illustrate approximately the same number of works fictional universe as Green Lantern ?
(c(Q386724),P1445,c(Q838948))
action approx
action find_reverse_tuple_counts
relation P1445
type Q838948
type Q386724
action count
action filter_type
action find
entity Q903885
relation P1445
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P1445 ?a . ?a rdf:type ontology:Q838948 . ?e rdf:type ontology:Q386724 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { resource:Q903885 property:P1445 ?s . ?s rdf:type ontology:Q838948 } } . FILTER ( ?m = ?n ) }
Green Lantern
action approx
action find_reverse_tuple_counts
relation fictional universe described in
type work of art
type work
action count
action filter_type
action find
entity Green Lantern
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:fictional_universe_described_in ?a . ?a rdf:type ontology:work_of_art . ?e rdf:type ontology:work } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { resource:Green_Lantern property:fictional_universe_described_in ?s . ?s rdf:type ontology:work_of_art } } . FILTER ( ?m = ?n ) }
[]
work of art work
Q102235 Q83542 Q24871
SYSTEM
Harry Potter and the Order of the Phoenix, Resident Evil: Retribution, Avatar
Q107940 Q83495 Q699684 Q1853270 Q691611 Q105801 Q21427173 Q39970 Q156069 Q153484 Q83542 Q23759268 Q150044 Q189600 Q478626 Q24871 Q207536 Q161400 Q102235 Q171711 Q903885 Q12049257 Q324557 Q1004318 Q171453
(c(Q386724),P1445,c(Q838948))
action approx
action find_reverse_tuple_counts
relation P1445
type Q838948
type Q386724
action count
action filter_type
action find
entity Q903885
relation P1445
type Q838948
[ANSWERS] illustrate approximately the same number of works fictional universe as Green Lantern
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P1445 ?a . ?a rdf:type ontology:Q838948 . ?e rdf:type ontology:Q386724 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { resource:Q903885 property:P1445 ?s . ?s rdf:type ontology:Q838948 } } . FILTER ( ?m = ?n ) }
Star Trek: The Motion Picture The Matrix Fullmetal Alchemist the Movie: Conqueror of Shamballa Starship Troopers 2: Hero of the Federation Serenity Stargate Dofus, book 1 : Julith Buffy the Vampire Slayer Resident Evil: Extinction Resident Evil Resident Evil: Retribution The Mummy Resident Evil: Damnation The Matrix Reloaded Starship Troopers Avatar The Matrix Revolutions Resident Evil: Apocalypse Harry Potter and the Order of the Phoenix Star Trek Into Darkness Green Lantern Resident Evil: The Final Chapter Resident Evil: Afterlife Fullmetal Alchemist: The Sacred Star of Milos Transformers
Harry Potter and the Order of the Phoenix, Resident Evil: Retribution and Avatar illustrate approximately the same number of works fictional universe as Green Lantern
Harry Potter and the Order of the Phoenix Resident Evil: Retribution Avatar
action approx
action find_reverse_tuple_counts
relation fictional universe described in
type work of art
type work
action count
action filter_type
action find
entity Green Lantern
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:fictional_universe_described_in ?a . ?a rdf:type ontology:work_of_art . ?e rdf:type ontology:work } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { resource:Green_Lantern property:fictional_universe_described_in ?s . ?s rdf:type ontology:work_of_art } } . FILTER ( ?m = ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q23759268
P1445
Q838948 Q386724
USER
And how about The Mummy?
(c(Q386724),P1445,c(Q838948))
action approx
action find_reverse_tuple_counts
relation P1445
type Q838948
type Q386724
action count
action filter_type
action find
entity Q23759268
relation P1445
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P1445 ?t . ?t rdf:type ontology:Q838948 . ?h rdf:type ontology:Q386724 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q23759268 property:P1445 ?p . ?p rdf:type ontology:Q838948 } } . FILTER ( ?b = ?w ) }
The Mummy
action approx
action find_reverse_tuple_counts
relation fictional universe described in
type work of art
type work
action count
action filter_type
action find
entity The Mummy
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:fictional_universe_described_in ?t . ?t rdf:type ontology:work_of_art . ?h rdf:type ontology:work } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:The_Mummy property:fictional_universe_described_in ?p . ?p rdf:type ontology:work_of_art } } . FILTER ( ?b = ?w ) }
[]
work of art work
Q102235 Q83542 Q24871
SYSTEM
Harry Potter and the Order of the Phoenix, Resident Evil: Retribution, Avatar
Q107940 Q83495 Q699684 Q1853270 Q691611 Q105801 Q21427173 Q39970 Q156069 Q153484 Q83542 Q23759268 Q150044 Q189600 Q478626 Q24871 Q207536 Q161400 Q102235 Q171711 Q903885 Q12049257 Q324557 Q1004318 Q171453
(c(Q386724),P1445,c(Q838948))
action approx
action find_reverse_tuple_counts
relation P1445
type Q838948
type Q386724
action count
action filter_type
action find
entity Q23759268
relation P1445
type Q838948
[ANSWERS]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P1445 ?t . ?t rdf:type ontology:Q838948 . ?h rdf:type ontology:Q386724 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:Q23759268 property:P1445 ?p . ?p rdf:type ontology:Q838948 } } . FILTER ( ?b = ?w ) }
Star Trek: The Motion Picture The Matrix Fullmetal Alchemist the Movie: Conqueror of Shamballa Starship Troopers 2: Hero of the Federation Serenity Stargate Dofus, book 1 : Julith Buffy the Vampire Slayer Resident Evil: Extinction Resident Evil Resident Evil: Retribution The Mummy Resident Evil: Damnation The Matrix Reloaded Starship Troopers Avatar The Matrix Revolutions Resident Evil: Apocalypse Harry Potter and the Order of the Phoenix Star Trek Into Darkness Green Lantern Resident Evil: The Final Chapter Resident Evil: Afterlife Fullmetal Alchemist: The Sacred Star of Milos Transformers
Harry Potter and the Order of the Phoenix Resident Evil: Retribution Avatar
action approx
action find_reverse_tuple_counts
relation fictional universe described in
type work of art
type work
action count
action filter_type
action find
entity The Mummy
relation fictional universe described in
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:fictional_universe_described_in ?t . ?t rdf:type ontology:work_of_art . ?h rdf:type ontology:work } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { resource:The_Mummy property:fictional_universe_described_in ?p . ?p rdf:type ontology:work_of_art } } . FILTER ( ?b = ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q838948 Q95074
USER
How many works of art inspired atleast 1 works of art or fictional characters ?
(c(Q838948)|c(Q95074),P941,c(Q838948))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q95074 ) } . ?p rdf:type ?n } GROUP BY ?z } . FILTER ( ?q >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
value 1
[[{'concept': 'work of art'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?z WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:fictional_character ) } . ?p rdf:type ?n } GROUP BY ?z } . FILTER ( ?q >= 1 ) }
[]
work of art work of art fictional character
SYSTEM
16
Q1136305 Q107724 Q1852671 Q17738 Q1345920 Q181598 Q753298 Q1754737 Q186014 Q379873 Q734834 Q375786 Q83186 Q465478 Q493755 Q214619
(c(Q838948)|c(Q95074),P941,c(Q838948))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q838948 ) ( ontology:Q95074 ) } . ?p rdf:type ?n } GROUP BY ?z } . FILTER ( ?q >= 1 ) }
Doryphoros Thunderball Carnival of Souls Star Wars Episode IV: A New Hope Song of the South King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Who Framed Roger Rabbit Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan Coming to America The Little Mermaid
16
action count
action atleast
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
value 1
[[{'concept': 'work of art'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?z WHERE { VALUES ( ?n ) { ( ontology:work_of_art ) ( ontology:fictional_character ) } . ?p rdf:type ?n } GROUP BY ?z } . FILTER ( ?q >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24871
P344
Q502895
USER
Which person is the cinematographer of Avatar ?
(Q24871,P344,c(Q502895))
action filter_type
action find
entity Q24871
relation P344
type Q502895
['Q24871', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q24871 property:P344 ?x }
Avatar
action filter_type
action find
entity Avatar
relation director of photography
type common name
['Avatar', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Avatar property:director_of_photography ?x }
[]
common name
Q926054
SYSTEM
Mauro Fiore
Q926054
(Q24871,P344,c(Q502895))
action filter_type
action find
entity Q24871
relation P344
type Q502895
[ANSWER] is the cinematographer of Avatar
['Q24871', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q24871 property:P344 ?x }
Mauro Fiore
Mauro Fiore is the cinematographer of Avatar
Mauro Fiore
action filter_type
action find
entity Avatar
relation director of photography
type common name
['Avatar', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Avatar property:director_of_photography ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q24871
P144
Q166142 Q1183543
USER
How many applications or devices are adapted from Avatar ?
(c(Q166142),P144,Q24871) (c(Q1183543),P144,Q24871)
action count
action union
action filter_type
action find_reverse
entity Q24871
relation P144
type Q166142
action filter_type
action find_reverse
entity Q24871
relation P144
type Q1183543
[{'concept': 'Q166142'}, 'P144', 'Q24871'] [{'concept': 'Q1183543'}, 'P144', 'Q24871']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q1183543 ) } . ?d rdf:type ?y }
Avatar
action count
action union
action filter_type
action find_reverse
entity Avatar
relation based on
type application
action filter_type
action find_reverse
entity Avatar
relation based on
type device
[{'concept': 'application'}, 'based on', 'Avatar'] [{'concept': 'device'}, 'based on', 'Avatar']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:application ) ( ontology:device ) } . ?d rdf:type ?y }
[]
application device
SYSTEM
2
Q1462437 Q4827807
(c(Q166142),P144,Q24871) (c(Q1183543),P144,Q24871)
action count
action union
action filter_type
action find_reverse
entity Q24871
relation P144
type Q166142
action filter_type
action find_reverse
entity Q24871
relation P144
type Q1183543
[ANSWER]
[{'concept': 'Q166142'}, 'P144', 'Q24871'] [{'concept': 'Q1183543'}, 'P144', 'Q24871']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:Q166142 ) ( ontology:Q1183543 ) } . ?d rdf:type ?y }
James Cameron's Avatar: The Game Pandora–The World of Avatar
2
action count
action union
action filter_type
action find_reverse
entity Avatar
relation based on
type application
action filter_type
action find_reverse
entity Avatar
relation based on
type device
[{'concept': 'application'}, 'based on', 'Avatar'] [{'concept': 'device'}, 'based on', 'Avatar']
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:application ) ( ontology:device ) } . ?d rdf:type ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q24871 Q20748928
P344
Q502895
USER
How many people are appointed as the cinematographers of Avatar or Shin Takarajima ?
(Q24871,P344,c(Q502895)) (Q20748928,P344,c(Q502895))
action count
action union
action filter_type
action find
entity Q24871
relation P344
type Q502895
action filter_type
action find
entity Q20748928
relation P344
type Q502895
['Q24871', 'P344', {'concept': 'Q502895'}] ['Q20748928', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { resource:Q24871 property:P344 ?b . ?b rdf:type ontology:Q502895 } UNION { resource:Q20748928 property:P344 ?b . ?b rdf:type ontology:Q502895 } }
Avatar Shin Takarajima
action count
action union
action filter_type
action find
entity Avatar
relation director of photography
type common name
action filter_type
action find
entity Shin Takarajima
relation director of photography
type common name
['Avatar', 'director of photography', {'concept': 'common name'}] ['Shin Takarajima', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { resource:Avatar property:director_of_photography ?b . ?b rdf:type ontology:common_name } UNION { resource:Shin_Takarajima property:director_of_photography ?b . ?b rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q11436260 Q926054
(Q24871,P344,c(Q502895)) (Q20748928,P344,c(Q502895))
action count
action union
action filter_type
action find
entity Q24871
relation P344
type Q502895
action filter_type
action find
entity Q20748928
relation P344
type Q502895
[ANSWER]
['Q24871', 'P344', {'concept': 'Q502895'}] ['Q20748928', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { resource:Q24871 property:P344 ?b . ?b rdf:type ontology:Q502895 } UNION { resource:Q20748928 property:P344 ?b . ?b rdf:type ontology:Q502895 } }
Hitoshi Ōne Mauro Fiore
2
action count
action union
action filter_type
action find
entity Avatar
relation director of photography
type common name
action filter_type
action find
entity Shin Takarajima
relation director of photography
type common name
['Avatar', 'director of photography', {'concept': 'common name'}] ['Shin Takarajima', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { resource:Avatar property:director_of_photography ?b . ?b rdf:type ontology:common_name } UNION { resource:Shin_Takarajima property:director_of_photography ?b . ?b rdf:type ontology:common_name } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?i } } . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?u = ?s ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?i } } . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?u = ?s ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P1303 ?i . ?i rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?i } } . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?u = ?s ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?s ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:instrument ?i . ?i rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?i } } . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?u = ?s ) }
[]