Simple Question (Direct)
Simple Question
Q8012480
P20
Q2668072
USER
Where did William Hookham Carpenter die ?
(Q8012480,P20,c(Q2668072))
action filter_type
action find
entity Q8012480
relation P20
type Q2668072
['Q8012480', 'P20', {'concept': 'Q2668072'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2668072 . resource:Q8012480 property:P20 ?b }
William Hookham Carpenter
action filter_type
action find
entity William Hookham Carpenter
relation place of death
type collection
['William Hookham Carpenter', 'place of death', {'concept': 'collection'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:collection . resource:William_Hookham_Carpenter property:place_of_death ?b }
[]
collection
Q6373
SYSTEM
British Museum
Q6373
(Q8012480,P20,c(Q2668072))
action filter_type
action find
entity Q8012480
relation P20
type Q2668072
William Hookham Carpenter died in [ANSWER]
['Q8012480', 'P20', {'concept': 'Q2668072'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2668072 . resource:Q8012480 property:P20 ?b }
British Museum
William Hookham Carpenter died in British Museum
British Museum
action filter_type
action find
entity William Hookham Carpenter
relation place of death
type collection
['William Hookham Carpenter', 'place of death', {'concept': 'collection'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:collection . resource:William_Hookham_Carpenter property:place_of_death ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6373
P1435
Q41176
USER
Which building is the heritage status of that collection ?
(Q6373,P1435,c(Q41176))
action filter_type
action find
entity Q6373
relation P1435
type Q41176
['Q6373', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?m WHERE { resource:Q6373 property:P1435 ?m . ?m rdf:type ontology:Q41176 }
British Museum
action filter_type
action find
entity British Museum
relation heritage status
type building
['British Museum', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?m WHERE { resource:British_Museum property:heritage_status ?m . ?m rdf:type ontology:building }
[]
building
Q15700818
SYSTEM
Grade I listed building
Q15700818
(Q6373,P1435,c(Q41176))
action filter_type
action find
entity Q6373
relation P1435
type Q41176
The [ANSWER] is the heritage status of that collection
['Q6373', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?m WHERE { resource:Q6373 property:P1435 ?m . ?m rdf:type ontology:Q41176 }
Grade I listed building
The Grade I listed building is the heritage status of that collection
Grade I listed building
action filter_type
action find
entity British Museum
relation heritage status
type building
['British Museum', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?m WHERE { resource:British_Museum property:heritage_status ?m . ?m rdf:type ontology:building }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q50030 Q6373
P186 P195
Q3305213
USER
Which paintings belong to British Museum and do not use watercolor to make their product ?
AND((c(Q3305213),P195,Q6373), NOT((c(Q3305213),P186,Q50030)))
action filter_type
action difference
action find_reverse
entity Q6373
relation P195
action find_reverse
entity Q50030
relation P186
type Q3305213
{'AND': [[{'concept': 'Q3305213'}, 'P195', 'Q6373'], {'NOT': [[{'concept': 'Q3305213'}, 'P186', 'Q50030']]}]}
SELECT DISTINCT ?o WHERE { FILTER NOT EXISTS { ?o property:P186 resource:Q50030 } . ?o property:P195 resource:Q6373 . ?o rdf:type ontology:Q3305213 }
watercolor British Museum
action filter_type
action difference
action find_reverse
entity British Museum
relation collection
action find_reverse
entity watercolor
relation material used
type painting
{'AND': [[{'concept': 'painting'}, 'collection', 'British Museum'], {'NOT': [[{'concept': 'painting'}, 'material used', 'watercolor']]}]}
SELECT DISTINCT ?o WHERE { FILTER NOT EXISTS { ?o property:material_used resource:watercolor } . ?o property:collection resource:British_Museum . ?o rdf:type ontology:painting }
[]
painting
Q20087452 Q23700508 Q23691640 Q23692163 Q23691577 Q23691618
SYSTEM
Icon of the Triumph of Orthodoxy, The Death of Earl Goodwin, Design for the dedication of Blair's 'The Grave', The Judgment of Paris, Jacob's Dream, Jacques and the Wounded Stag
Q20087452 Q23700508 Q23691640 Q23692163 Q23691577 Q23691618
AND((c(Q3305213),P195,Q6373), NOT((c(Q3305213),P186,Q50030)))
action filter_type
action difference
action find_reverse
entity Q6373
relation P195
action find_reverse
entity Q50030
relation P186
type Q3305213
[ANSWERS] belong to British Museum and do not use watercolor to make their product
{'AND': [[{'concept': 'Q3305213'}, 'P195', 'Q6373'], {'NOT': [[{'concept': 'Q3305213'}, 'P186', 'Q50030']]}]}
SELECT DISTINCT ?o WHERE { FILTER NOT EXISTS { ?o property:P186 resource:Q50030 } . ?o property:P195 resource:Q6373 . ?o rdf:type ontology:Q3305213 }
Icon of the Triumph of Orthodoxy The Death of Earl Goodwin Design for the dedication of Blair's 'The Grave' The Judgment of Paris Jacob's Dream Jacques and the Wounded Stag
Icon of the Triumph of Orthodoxy, The Death of Earl Goodwin, Design for the dedication of Blair's 'The Grave', The Judgment of Paris, Jacob's Dream and Jacques and the Wounded Stag belong to British Museum and do not use watercolor to make their product
Icon of the Triumph of Orthodoxy The Death of Earl Goodwin Design for the dedication of Blair's 'The Grave' The Judgment of Paris Jacob's Dream Jacques and the Wounded Stag
action filter_type
action difference
action find_reverse
entity British Museum
relation collection
action find_reverse
entity watercolor
relation material used
type painting
{'AND': [[{'concept': 'painting'}, 'collection', 'British Museum'], {'NOT': [[{'concept': 'painting'}, 'material used', 'watercolor']]}]}
SELECT DISTINCT ?o WHERE { FILTER NOT EXISTS { ?o property:material_used resource:watercolor } . ?o property:collection resource:British_Museum . ?o rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q20087452 Q23700508 Q23691640 Q23692163 Q23691577 Q23691618
P195
Q2668072
USER
Where are Icon of the Triumph of Orthodoxy, The Death of Earl Goodwin, Design for the dedication of Blair's 'The Grave', The Judgment of Paris, Jacob's Dream and Jacques and the Wounded Stag preserved in ?
(Q20087452,P195,c(Q2668072)) (Q23700508,P195,c(Q2668072)) (Q23691640,P195,c(Q2668072)) (Q23692163,P195,c(Q2668072)) (Q23691577,P195,c(Q2668072)) (Q23691618,P195,c(Q2668072))
action union
action filter_type
action find
entity Q20087452
relation P195
type Q2668072
action filter_type
action find
entity Q23700508
relation P195
type Q2668072
action filter_type
action find
entity Q23691640
relation P195
type Q2668072
action filter_type
action find
entity Q23692163
relation P195
type Q2668072
action filter_type
action find
entity Q23691577
relation P195
type Q2668072
action filter_type
action find
entity Q23691618
relation P195
type Q2668072
['Q20087452', 'P195', {'concept': 'Q2668072'}] ['Q23700508', 'P195', {'concept': 'Q2668072'}] ['Q23691640', 'P195', {'concept': 'Q2668072'}] ['Q23692163', 'P195', {'concept': 'Q2668072'}] ['Q23691577', 'P195', {'concept': 'Q2668072'}] ['Q23691618', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:Q2668072 . resource:Q23700508 property:P195 ?s } UNION { ?s rdf:type ontology:Q2668072 . resource:Q20087452 property:P195 ?s } }
Icon of the Triumph of Orthodoxy The Death of Earl Goodwin Design for the dedication of Blair's 'The Grave' The Judgment of Paris Jacob's Dream Jacques and the Wounded Stag
action union
action filter_type
action find
entity Icon of the Triumph of Orthodoxy
relation collection
type collection
action filter_type
action find
entity The Death of Earl Goodwin
relation collection
type collection
action filter_type
action find
entity Design for the dedication of Blair's 'The Grave'
relation collection
type collection
action filter_type
action find
entity The Judgment of Paris
relation collection
type collection
action filter_type
action find
entity Jacob's Dream
relation collection
type collection
action filter_type
action find
entity Jacques and the Wounded Stag
relation collection
type collection
['Icon of the Triumph of Orthodoxy', 'collection', {'concept': 'collection'}] ['The Death of Earl Goodwin', 'collection', {'concept': 'collection'}] ["Design for the dedication of Blair's 'The Grave'", 'collection', {'concept': 'collection'}] ['The Judgment of Paris', 'collection', {'concept': 'collection'}] ["Jacob's Dream", 'collection', {'concept': 'collection'}] ['Jacques and the Wounded Stag', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:collection . resource:The_Death_of_Earl_Goodwin property:collection ?s } UNION { ?s rdf:type ontology:collection . resource:Icon_of_the_Triumph_of_Orthodoxy property:collection ?s } }
[]
collection
Q6373 Q6373 Q6373
SYSTEM
British Museum
Q6373 Q6373 Q6373 Q6373 Q6373 Q6373
(Q20087452,P195,c(Q2668072)) (Q23700508,P195,c(Q2668072)) (Q23691640,P195,c(Q2668072)) (Q23692163,P195,c(Q2668072)) (Q23691577,P195,c(Q2668072)) (Q23691618,P195,c(Q2668072))
action union
action filter_type
action find
entity Q20087452
relation P195
type Q2668072
action filter_type
action find
entity Q23700508
relation P195
type Q2668072
action filter_type
action find
entity Q23691640
relation P195
type Q2668072
action filter_type
action find
entity Q23692163
relation P195
type Q2668072
action filter_type
action find
entity Q23691577
relation P195
type Q2668072
action filter_type
action find
entity Q23691618
relation P195
type Q2668072
Icon of the Triumph of Orthodoxy , The Death of Earl Goodwin , Design for the dedication of Blair's ' The Grave ' , The Judgment of Paris , Jacob's Dream and Jacques and the Wounded Stag preserved in the [ANSWER], [ANSWER] and [ANSWER] are
['Q20087452', 'P195', {'concept': 'Q2668072'}] ['Q23700508', 'P195', {'concept': 'Q2668072'}] ['Q23691640', 'P195', {'concept': 'Q2668072'}] ['Q23692163', 'P195', {'concept': 'Q2668072'}] ['Q23691577', 'P195', {'concept': 'Q2668072'}] ['Q23691618', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:Q2668072 . resource:Q23700508 property:P195 ?s } UNION { ?s rdf:type ontology:Q2668072 . resource:Q20087452 property:P195 ?s } }
British Museum British Museum British Museum British Museum British Museum British Museum
Icon of the Triumph of Orthodoxy , The Death of Earl Goodwin , Design for the dedication of Blair's ' The Grave ' , The Judgment of Paris , Jacob's Dream and Jacques and the Wounded Stag preserved in the British Museum, British Museum and British Museum are
British Museum British Museum British Museum
action union
action filter_type
action find
entity Icon of the Triumph of Orthodoxy
relation collection
type collection
action filter_type
action find
entity The Death of Earl Goodwin
relation collection
type collection
action filter_type
action find
entity Design for the dedication of Blair's 'The Grave'
relation collection
type collection
action filter_type
action find
entity The Judgment of Paris
relation collection
type collection
action filter_type
action find
entity Jacob's Dream
relation collection
type collection
action filter_type
action find
entity Jacques and the Wounded Stag
relation collection
type collection
['Icon of the Triumph of Orthodoxy', 'collection', {'concept': 'collection'}] ['The Death of Earl Goodwin', 'collection', {'concept': 'collection'}] ["Design for the dedication of Blair's 'The Grave'", 'collection', {'concept': 'collection'}] ['The Judgment of Paris', 'collection', {'concept': 'collection'}] ["Jacob's Dream", 'collection', {'concept': 'collection'}] ['Jacques and the Wounded Stag', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:collection . resource:The_Death_of_Earl_Goodwin property:collection ?s } UNION { ?s rdf:type ontology:collection . resource:Icon_of_the_Triumph_of_Orthodoxy property:collection ?s } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20087452
P170
Q502895
USER
Who is credited with the creation of Icon of the Triumph of Orthodoxy ?
(Q6373,P170,c(Q502895)) (Q6373,P170,c(Q502895)) (Q6373,P170,c(Q502895))
action filter_type
action find
entity Q20087452
relation P170
type Q502895
['Q6373', 'P170', {'concept': 'Q502895'}] ['Q6373', 'P170', {'concept': 'Q502895'}] ['Q6373', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q20087452 property:P170 ?u }
Icon of the Triumph of Orthodoxy
action filter_type
action find
entity Icon of the Triumph of Orthodoxy
relation creator
type common name
['British Museum', 'creator', {'concept': 'common name'}] ['British Museum', 'creator', {'concept': 'common name'}] ['British Museum', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Icon_of_the_Triumph_of_Orthodoxy property:creator ?u }
[]
common name
Q4233718
SYSTEM
anonymous
Q4233718
(Q6373,P170,c(Q502895)) (Q6373,P170,c(Q502895)) (Q6373,P170,c(Q502895))
action filter_type
action find
entity Q20087452
relation P170
type Q502895
Nymous [ANSWER] is credited with the creation of Icon of the Triumph of Orthodoxy
['Q6373', 'P170', {'concept': 'Q502895'}] ['Q6373', 'P170', {'concept': 'Q502895'}] ['Q6373', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q20087452 property:P170 ?u }
anonymous
Nymous anonymous is credited with the creation of Icon of the Triumph of Orthodoxy
anonymous
action filter_type
action find
entity Icon of the Triumph of Orthodoxy
relation creator
type common name
['British Museum', 'creator', {'concept': 'common name'}] ['British Museum', 'creator', {'concept': 'common name'}] ['British Museum', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Icon_of_the_Triumph_of_Orthodoxy property:creator ?u }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q80284
P1303
Q34379 Q502895
USER
Which musical instruments can lesser number of people perform with than viola ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80284
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?u ) WHERE { ?h rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?h } GROUP BY ?h } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 resource:Q80284 . ?o rdf:type ontology:Q502895 } } }
viola
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity viola
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?u ) WHERE { ?h rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?h } GROUP BY ?h } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument resource:viola . ?o rdf:type ontology:common_name } } }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 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 less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q80284
relation P1303
type Q502895
[ANSWERS] can lesser number of people perform with than viola
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?u ) WHERE { ?h rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 . ?d property:P1303 ?h } GROUP BY ?h } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P1303 resource:Q80284 . ?o rdf:type ontology:Q502895 } } }
lyre acoustic bass guitar Body percussion 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 Tsuzumi geomungo 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
Davul, harpsichord and Wurlitzer electric piano can lesser number of people perform with than viola
davul harpsichord Wurlitzer electric piano
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity viola
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?u ) WHERE { ?h rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name . ?d property:instrument ?h } GROUP BY ?h } . FILTER ( ?u < ?k ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:instrument resource:viola . ?o rdf:type ontology:common_name } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2660670
P1303
Q34379 Q502895
USER
And also tell me about Irish bouzouki?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q2660670
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P1303 resource:Q2660670 . ?j rdf:type ontology:Q502895 } } . FILTER ( ?o < ?h ) }
Irish bouzouki
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Irish bouzouki
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:instrument resource:Irish_bouzouki . ?j rdf:type ontology:common_name } } . FILTER ( ?o < ?h ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q2660670
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P1303 resource:Q2660670 . ?j rdf:type ontology:Q502895 } } . FILTER ( ?o < ?h ) }
spoon cajón wind instrument
spoon cajón wind instrument
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Irish bouzouki
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:instrument resource:Irish_bouzouki . ?j rdf:type ontology:common_name } } . FILTER ( ?o < ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 3906 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3906
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?b >= 3906 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3906
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?b >= 3906 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3906
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?b >= 3906 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3906
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?b >= 3906 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q34379 Q340169
USER
Which medias demonstrate max number of musical instruments ?
(c(Q340169),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q340169
type Q34379
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?j property:P180 ?i . ?i rdf:type ontology:Q34379 . ?j rdf:type ontology:Q340169 } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?k ) WHERE { ?a property:P180 ?u . ?a rdf:type ontology:Q340169 . ?u rdf:type ontology:Q34379 } GROUP BY ?a } . FILTER ( ?k = ?q ) }
action argmax
action find_tuple_counts
relation depicts
type media
type musical instrument
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?j property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?j rdf:type ontology:media } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?k ) WHERE { ?a property:depicts ?u . ?a rdf:type ontology:media . ?u rdf:type ontology:musical_instrument } GROUP BY ?a } . FILTER ( ?k = ?q ) }
[]
musical instrument media
Q19868516 Q17519439
SYSTEM
Violin Hanging on a Wall, Achille Henri Victor Gouffé
Q19868516 Q17519439
(c(Q340169),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q340169
type Q34379
Violin hanging on a Wall and Achille Henri Victor Gouffé demonstrate max number of musical instruments
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?j property:P180 ?i . ?i rdf:type ontology:Q34379 . ?j rdf:type ontology:Q340169 } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?k ) WHERE { ?a property:P180 ?u . ?a rdf:type ontology:Q340169 . ?u rdf:type ontology:Q34379 } GROUP BY ?a } . FILTER ( ?k = ?q ) }
Violin Hanging on a Wall Achille Henri Victor Gouffé
Violin hanging on a Wall and Achille Henri Victor Gouffé demonstrate max number of musical instruments
Violin Hanging on a Wall Achille Henri Victor Gouffé
action argmax
action find_tuple_counts
relation depicts
type media
type musical instrument
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?q ) { SELECT DISTINCT ?j ( COUNT ( ?i ) AS ?g ) WHERE { ?j property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?j rdf:type ontology:media } GROUP BY ?j } } . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?k ) WHERE { ?a property:depicts ?u . ?a rdf:type ontology:media . ?u rdf:type ontology:musical_instrument } GROUP BY ?a } . FILTER ( ?k = ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17519439
P136
Q483394
USER
What can be considered as category for that media ?
(Q17519439,P136,c(Q483394))
action filter_type
action find
entity Q17519439
relation P136
type Q483394
['Q17519439', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?x WHERE { resource:Q17519439 property:P136 ?x . ?x rdf:type ontology:Q483394 }
Achille Henri Victor Gouffé
action filter_type
action find
entity Achille Henri Victor Gouffé
relation genre
type genre
['Achille Henri Victor Gouffé', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?x WHERE { resource:Achille_Henri_Victor_Gouffé property:genre ?x . ?x rdf:type ontology:genre }
[]
genre
Clarification for simple ques.
Q19868516
SYSTEM
Did you mean Violin Hanging on a Wall ?
Q19868516 Q17519439
(Q19868516,P136,c(Q483394)) (Q17519439,P136,c(Q483394))
[ANSWER]
['Q19868516', 'P136', {'concept': 'Q483394'}] ['Q17519439', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?x WHERE { resource:Q17519439 property:P136 ?x . ?x rdf:type ontology:Q483394 }
Violin Hanging on a Wall Achille Henri Victor Gouffé
Did you mean Violin Hanging on a Wall ?
Violin Hanging on a Wall
['Violin Hanging on a Wall', 'genre', {'concept': 'genre'}] ['Achille Henri Victor Gouffé', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?x WHERE { resource:Achille_Henri_Victor_Gouffé property:genre ?x . ?x rdf:type ontology:genre }
[]
Simple Question (Coreferenced)
USER
No, I meant Achille Henri Victor Gouffé. Could you tell me the answer for that?
(Q17519439,P136,c(Q483394))
Q17519439
['Q17519439', 'P136', {'concept': 'Q483394'}]
['Achille Henri Victor Gouffé', 'genre', {'concept': 'genre'}]
[]
Q134307
SYSTEM
portrait
Q134307
(Q17519439,P136,c(Q483394))
action filter_type
action find
entity Q17519439
relation P136
type Q483394
[ANSWER] can be considered as category for that media
['Q17519439', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?x WHERE { resource:Q17519439 property:P136 ?x . ?x rdf:type ontology:Q483394 }
portrait
Portrait can be considered as category for that media
portrait
action filter_type
action find
entity Achille Henri Victor Gouffé
relation genre
type genre
['Achille Henri Victor Gouffé', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?x WHERE { resource:Achille_Henri_Victor_Gouffé property:genre ?x . ?x rdf:type ontology:genre }
[]