Simple Question (Direct)
Simple Question
Q1606842
P641
Q349
USER
Which sport did Joe McNamee participate in ?
(Q1606842,P641,c(Q349))
action filter_type
action find
entity Q1606842
relation P641
type Q349
['Q1606842', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q1606842 property:P641 ?q . ?q rdf:type ontology:Q349 }
Joe McNamee
action filter_type
action find
entity Joe McNamee
relation sport
type sport
['Joe McNamee', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Joe_McNamee property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q1606842,P641,c(Q349))
action filter_type
action find
entity Q1606842
relation P641
type Q349
Joe McNamee participated in [ANSWER]
['Q1606842', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q1606842 property:P641 ?q . ?q rdf:type ontology:Q349 }
basketball
Joe McNamee participated in basketball
basketball
action filter_type
action find
entity Joe McNamee
relation sport
type sport
['Joe McNamee', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Joe_McNamee property:sport ?q . ?q rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q713298
P1303
Q34379 Q502895
USER
Which musical instruments are played by less number of people than geomungo ?
(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 Q713298
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 . ?s property:P1303 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P1303 resource:Q713298 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?a < ?i ) }
geomungo
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity geomungo
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument . ?s property:instrument ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:instrument resource:geomungo . ?v rdf:type ontology:common_name } } . FILTER ( ?a < ?i ) }
[]
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 Q713298
relation P1303
type Q502895
[ANSWERS] are played by less number of people than geomungo
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:Q502895 . ?r rdf:type ontology:Q34379 . ?s property:P1303 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P1303 resource:Q713298 . ?v rdf:type ontology:Q502895 } } . FILTER ( ?a < ?i ) }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by less number of people than geomungo
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 geomungo
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?a ) WHERE { ?s rdf:type ontology:common_name . ?r rdf:type ontology:musical_instrument . ?s property:instrument ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:instrument resource:geomungo . ?v rdf:type ontology:common_name } } . FILTER ( ?a < ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q206987
P1303
Q34379 Q502895
USER
And also tell me about vibraphone?
(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 Q206987
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P1303 ?m . ?c rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P1303 resource:Q206987 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?f < ?a ) }
vibraphone
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity vibraphone
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:instrument ?m . ?c rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:instrument resource:vibraphone . ?r rdf:type ontology:common_name } } . FILTER ( ?f < ?a ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 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 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 Q206987
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P1303 ?m . ?c rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P1303 resource:Q206987 . ?r rdf:type ontology:Q502895 } } . FILTER ( ?f < ?a ) }
lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument 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 drum Kayamb Paraguayan harp
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity vibraphone
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:instrument ?m . ?c rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:instrument resource:vibraphone . ?r rdf:type ontology:common_name } } . FILTER ( ?f < ?a ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q816793
P495
Q15617994
USER
Which administrative territory is the origin of that musical instrument ?
(Q816793,P495,c(Q15617994))
action filter_type
action find
entity Q816793
relation P495
type Q15617994
['Q816793', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q816793 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
Bendir
action filter_type
action find
entity Bendir
relation country of origin
type designation for an administrative territorial entity
['Bendir', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Bendir property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1178361
SYSTEM
Did you mean davul ?
Q1178361 Q1759986 Q816793
(Q1178361,P495,c(Q15617994)) (Q1759986,P495,c(Q15617994)) (Q816793,P495,c(Q15617994))
[ANSWER]
['Q1178361', 'P495', {'concept': 'Q15617994'}] ['Q1759986', 'P495', {'concept': 'Q15617994'}] ['Q816793', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q816793 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
davul Wurlitzer electric piano Bendir
Did you mean davul ?
davul
['davul', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Wurlitzer electric piano', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Bendir', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Bendir property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Bendir. Could you tell me the answer for that?
(Q816793,P495,c(Q15617994))
Q816793
['Q816793', 'P495', {'concept': 'Q15617994'}]
['Bendir', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q43
SYSTEM
Turkey
Q43
(Q816793,P495,c(Q15617994))
action filter_type
action find
entity Q816793
relation P495
type Q15617994
[ANSWER] is the origin of that musical instrument
['Q816793', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q816793 property:P495 ?v . ?v rdf:type ontology:Q15617994 }
Turkey
Turkey is the origin of that musical instrument
Turkey
action filter_type
action find
entity Bendir
relation country of origin
type designation for an administrative territorial entity
['Bendir', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Bendir property:country_of_origin ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43
P47
Q56061
USER
Which administrative territories are adjacent to that administrative territory ?
(Q43,P47,c(Q56061))
action filter_type
action find
entity Q43
relation P47
type Q56061
['Q43', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q43 property:P47 ?i . ?i rdf:type ontology:Q56061 }
Turkey
action filter_type
action find
entity Turkey
relation shares border with
type administrative territorial entity
['Turkey', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Turkey property:shares_border_with ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458 Q7172
SYSTEM
European Union, Arab League
Q458 Q7172
(Q43,P47,c(Q56061))
action filter_type
action find
entity Q43
relation P47
type Q56061
[ANSWERS] are adjacent to that administrative territory
['Q43', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q43 property:P47 ?i . ?i rdf:type ontology:Q56061 }
European Union Arab League
European Union and Arab League are adjacent to that administrative territory
European Union Arab League
action filter_type
action find
entity Turkey
relation shares border with
type administrative territorial entity
['Turkey', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Turkey property:shares_border_with ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q81982
P870
Q34379 Q207628 Q15850590
USER
How many musical instruments are used in less number of musical compositions or theatrical genres than harpsichord ?
(c(Q207628)|c(Q15850590),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q81982
relation P870
type Q207628
type Q15850590
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:P870 resource:Q81982 . { { ?r rdf:type ontology:Q15850590 } UNION { ?r rdf:type ontology:Q207628 } } } } . FILTER ( ?e < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?i WHERE { { ?c property:P870 ?i . ?i rdf:type ontology:Q34379 . ?c rdf:type ontology:Q207628 } UNION { ?c property:P870 ?i . ?i rdf:type ontology:Q34379 . ?c rdf:type ontology:Q15850590 } } GROUP BY ?i } }
harpsichord
action count
action less
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity harpsichord
relation instrumentation
type musical composition
type theatrical genre
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:instrumentation resource:harpsichord . { { ?r rdf:type ontology:theatrical_genre } UNION { ?r rdf:type ontology:musical_composition } } } } . FILTER ( ?e < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?i WHERE { { ?c property:instrumentation ?i . ?i rdf:type ontology:musical_instrument . ?c rdf:type ontology:musical_composition } UNION { ?c property:instrumentation ?i . ?i rdf:type ontology:musical_instrument . ?c rdf:type ontology:theatrical_genre } } GROUP BY ?i } }
[]
musical instrument musical composition theatrical genre
SYSTEM
15
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q11404 Q206987
(c(Q207628)|c(Q15850590),P870,c(Q34379))
action count
action less
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q81982
relation P870
type Q207628
type Q15850590
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:P870 resource:Q81982 . { { ?r rdf:type ontology:Q15850590 } UNION { ?r rdf:type ontology:Q207628 } } } } . FILTER ( ?e < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?i WHERE { { ?c property:P870 ?i . ?i rdf:type ontology:Q34379 . ?c rdf:type ontology:Q207628 } UNION { ?c property:P870 ?i . ?i rdf:type ontology:Q34379 . ?c rdf:type ontology:Q15850590 } } GROUP BY ?i } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca drum vibraphone
15
action count
action less
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity harpsichord
relation instrumentation
type musical composition
type theatrical genre
[[{'concept': 'musical composition'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { ?r property:instrumentation resource:harpsichord . { { ?r rdf:type ontology:theatrical_genre } UNION { ?r rdf:type ontology:musical_composition } } } } . FILTER ( ?e < ?n ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) ?i WHERE { { ?c property:instrumentation ?i . ?i rdf:type ontology:musical_instrument . ?c rdf:type ontology:musical_composition } UNION { ?c property:instrumentation ?i . ?i rdf:type ontology:musical_instrument . ?c rdf:type ontology:theatrical_genre } } GROUP BY ?i } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q458
P1313
Q12737077
USER
Which occupation is fulfilled by European Union ?
(Q458,P1313,c(Q12737077))
action filter_type
action find
entity Q458
relation P1313
type Q12737077
['Q458', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q458 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
European Union
action filter_type
action find
entity European Union
relation office held by head of government
type occupation
['European Union', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:European_Union property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q8882
SYSTEM
President of the European Commission
Q8882
(Q458,P1313,c(Q12737077))
action filter_type
action find
entity Q458
relation P1313
type Q12737077
The [ANSWER] is fulfilled by European Union
['Q458', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q458 property:P1313 ?c . ?c rdf:type ontology:Q12737077 }
President of the European Commission
The President of the European Commission is fulfilled by European Union
President of the European Commission
action filter_type
action find
entity European Union
relation office held by head of government
type occupation
['European Union', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:European_Union property:office_held_by_head_of_government ?c . ?c rdf:type ontology:occupation }
[]