Simple Question (Direct)
Simple Question
Q1353525
P27
Q1048835
USER
Which political territory does Erich Witte belong to ?
(Q1353525,P27,c(Q1048835))
action filter_type
action find
entity Q1353525
relation P27
type Q1048835
['Q1353525', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q1353525 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Erich Witte
action filter_type
action find
entity Erich Witte
relation country of citizenship
type political territorial entity
['Erich Witte', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Erich_Witte property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1353525,P27,c(Q1048835))
action filter_type
action find
entity Q1353525
relation P27
type Q1048835
Erich Witte belongs to [ANSWER]
['Q1353525', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q1353525 property:P27 ?r . ?r rdf:type ontology:Q1048835 }
Germany
Erich Witte belongs to Germany
Germany
action filter_type
action find
entity Erich Witte
relation country of citizenship
type political territorial entity
['Erich Witte', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Erich_Witte property:country_of_citizenship ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1353525
P20
Q56061
USER
Where did Erich Witte die ?
(Q1353525,P20,c(Q56061))
action filter_type
action find
entity Q1353525
relation P20
type Q56061
['Q1353525', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1353525 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Erich Witte
action filter_type
action find
entity Erich Witte
relation place of death
type administrative territorial entity
['Erich Witte', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Erich_Witte property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1353525,P20,c(Q56061))
action filter_type
action find
entity Q1353525
relation P20
type Q56061
Erich Witte died in [ANSWER]
['Q1353525', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1353525 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Berlin
Erich Witte died in Berlin
Berlin
action filter_type
action find
entity Erich Witte
relation place of death
type administrative territorial entity
['Erich Witte', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Erich_Witte property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6144183
Q56061
USER
And how about James Thompson?
(Q6144183,P20,c(Q56061))
action filter_type
action find
entity Q6144183
relation P20
type Q56061
['Q6144183', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q6144183 property:P20 ?f . ?f rdf:type ontology:Q56061 }
James Thompson
action filter_type
action find
entity James Thompson
relation place of death
type administrative territorial entity
['James Thompson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:James_Thompson property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q504530
SYSTEM
Walsall
Q504530
(Q6144183,P20,c(Q56061))
action filter_type
action find
entity Q6144183
relation P20
type Q56061
[ANSWER]
['Q6144183', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q6144183 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Walsall
Walsall
action filter_type
action find
entity James Thompson
relation place of death
type administrative territorial entity
['James Thompson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:James_Thompson property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q504530 Q7924942
P19
Q502895
USER
Was Vic Wright born at that administrative territory ?
(Q7924942,P19,Q504530)
action is_in
entity Q504530
action find
entity Q7924942
relation P19
['Q7924942', 'P19', 'Q504530']
ASK WHERE { resource:Q7924942 property:P19 resource:Q504530 }
Walsall Vic Wright
action is_in
entity Walsall
action find
entity Vic Wright
relation place of birth
['Vic Wright', 'place of birth', 'Walsall']
ASK WHERE { resource:Vic_Wright property:place_of_birth resource:Walsall }
[]
common name
SYSTEM
YES
(Q7924942,P19,Q504530)
action is_in
entity Q504530
action find
entity Q7924942
relation P19
[ANSWER]
['Q7924942', 'P19', 'Q504530']
ASK WHERE { resource:Q7924942 property:P19 resource:Q504530 }
Yes
action is_in
entity Walsall
action find
entity Vic Wright
relation place of birth
['Vic Wright', 'place of birth', 'Walsall']
ASK WHERE { resource:Vic_Wright property:place_of_birth resource:Walsall }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q635113
P530
Q15617994
USER
Does Witzhave have diplomatic relations with Germany ?
(Q183,P530,Q635113)
action is_in
entity Q635113
action find
entity Q183
relation P530
['Q183', 'P530', 'Q635113']
ASK WHERE { resource:Q183 property:P530 resource:Q635113 }
Germany Witzhave
action is_in
entity Witzhave
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Witzhave']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Witzhave }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q635113)
action is_in
entity Q635113
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q635113']
ASK WHERE { resource:Q183 property:P530 resource:Q635113 }
No
action is_in
entity Witzhave
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Witzhave']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Witzhave }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P740
Q2088357
USER
Which musical ensembles were formed at that political territory ?
action filter_type
action find_reverse
entity Q183
relation P740
type Q2088357
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2088357 . ?q property:P740 resource:Q183 }
Germany
action filter_type
action find_reverse
entity Germany
relation location of formation
type musical ensemble
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_ensemble . ?q property:location_of_formation resource:Germany }
[]
musical ensemble
Q694177 Q869922 Q155123
SYSTEM
E Nomine, Son Goku, No Angels
Q582385 Q479305 Q19612750 Q732044 Q2893328 Q869795 Q700020 Q869572 Q7749437 Q18358163 Q706748 Q872722 Q7046800 Q2070156 Q869922 Q367932 Q329220 Q694177 Q5427177 Q1814025 Q552047 Q1562090 Q1578981 Q191462 Q663603 Q570782 Q1312864 Q155123 Q157079 Q472764 Q740401
action filter_type
action find_reverse
entity Q183
relation P740
type Q2088357
[ANSWERS] were formed at that political territory
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2088357 . ?q property:P740 resource:Q183 }
Unisonic Endstufe Lindemann IMATEM Beautiful Sin Grailknights Stahlgewitter The Retrosic The Magic I.D. Bill Legend's T. Rex Powerwolf Hoelderlin Noekk Percewood's Onagram Son Goku Savage Circus Ahab E Nomine FTANNG! True Symphonic Rockestra Race War The Ruins of Beverast Rapsoul Zeraphine Yoomiii Rebellion Eisenfunk No Angels Wir sind Helden Heimataerde Coldseed
E Nomine, Son Goku and No Angels were formed at that political territory
E Nomine Son Goku No Angels
action filter_type
action find_reverse
entity Germany
relation location of formation
type musical ensemble
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:musical_ensemble . ?q property:location_of_formation resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3875823 Q1353525
P106
Q12737077
USER
Which occupations are the job of Erich Witte or Niccolò ?
OR((Q1353525,P106,c(Q12737077)), (Q3875823,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1353525
relation P106
action find
entity Q3875823
relation P106
type Q12737077
{'OR': [['Q1353525', 'P106', {'concept': 'Q12737077'}], ['Q3875823', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1353525 property:P106 ?v } UNION { resource:Q3875823 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
Niccolò Erich Witte
action filter_type
action union
action find
entity Erich Witte
relation occupation
action find
entity Niccolò
relation occupation
type occupation
{'OR': [['Erich Witte', 'occupation', {'concept': 'occupation'}], ['Niccolò', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Erich_Witte property:occupation ?v } UNION { resource:Niccolò property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
occupation
Q2865819 Q1622272 Q1281618 Q177220
SYSTEM
opera singer, university teacher, sculptor, singer
Q2865819 Q1622272 Q1281618 Q177220
OR((Q1353525,P106,c(Q12737077)), (Q3875823,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q1353525
relation P106
action find
entity Q3875823
relation P106
type Q12737077
The [ANSWERS] are the job of Erich Witte or Niccolò
{'OR': [['Q1353525', 'P106', {'concept': 'Q12737077'}], ['Q3875823', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q1353525 property:P106 ?v } UNION { resource:Q3875823 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
opera singer university teacher sculptor singer
The opera singer, university teacher, sculptor and singer are the job of Erich Witte or Niccolò
opera singer university teacher sculptor singer
action filter_type
action union
action find
entity Erich Witte
relation occupation
action find
entity Niccolò
relation occupation
type occupation
{'OR': [['Erich Witte', 'occupation', {'concept': 'occupation'}], ['Niccolò', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Erich_Witte property:occupation ?v } UNION { resource:Niccolò property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155123
P136
Q151885
USER
Which genre does No Angels belong to ?
(Q155123,P136,c(Q151885))
action filter_type
action find
entity Q155123
relation P136
type Q151885
['Q155123', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?i WHERE { resource:Q155123 property:P136 ?i . ?i rdf:type ontology:Q151885 }
No Angels
action filter_type
action find
entity No Angels
relation genre
type concept
['No Angels', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?i WHERE { resource:No_Angels property:genre ?i . ?i rdf:type ontology:concept }
[]
concept
Q37073
SYSTEM
pop music
Q37073
(Q155123,P136,c(Q151885))
action filter_type
action find
entity Q155123
relation P136
type Q151885
No Angels belongs to [ANSWER]
['Q155123', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?i WHERE { resource:Q155123 property:P136 ?i . ?i rdf:type ontology:Q151885 }
pop music
No Angels belongs to pop music
pop music
action filter_type
action find
entity No Angels
relation genre
type concept
['No Angels', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?i WHERE { resource:No_Angels property:genre ?i . ?i rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37073
P101
Q502895
USER
Who works in the domain of that concept ?
(c(Q502895),P101,Q37073)
action filter_type
action find_reverse
entity Q37073
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q37073']
SELECT DISTINCT ?h WHERE { ?h property:P101 resource:Q37073 . ?h rdf:type ontology:Q502895 }
pop music
action filter_type
action find_reverse
entity pop music
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'pop music']
SELECT DISTINCT ?h WHERE { ?h property:field_of_work resource:pop_music . ?h rdf:type ontology:common_name }
[]
common name
Q4084840 Q24576570 Q573525
SYSTEM
Yuliya Beretta, Elena Baravilala, Fabian Buch
Q24576570 Q573525 Q25091773 Q4084840
(c(Q502895),P101,Q37073)
action filter_type
action find_reverse
entity Q37073
relation P101
type Q502895
[ANSWERS] work in the domain of that concept
[{'concept': 'Q502895'}, 'P101', 'Q37073']
SELECT DISTINCT ?h WHERE { ?h property:P101 resource:Q37073 . ?h rdf:type ontology:Q502895 }
Elena Baravilala Fabian Buch Chonnasorn Sajakul Yuliya Beretta
Yuliya Beretta, Elena Baravilala and Fabian Buch work in the domain of that concept
Yuliya Beretta Elena Baravilala Fabian Buch
action filter_type
action find_reverse
entity pop music
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'pop music']
SELECT DISTINCT ?h WHERE { ?h property:field_of_work resource:pop_music . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q2342494
USER
How many collectables did approximately 1 person do the dubbing for ?
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 1
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?i ) WHERE { ?x property:P725 ?o . ?x rdf:type ontology:Q2342494 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?i = 1 ) }
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 1
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?i ) WHERE { ?x property:voice_actor ?o . ?x rdf:type ontology:collectable . ?o rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?i = 1 ) }
[]
common name collectable
SYSTEM
12
Q50035 Q495094 Q482870 Q336056 Q1204015 Q304061 Q11272884 Q11325839 Q119534 Q184667 Q485958 Q2759489
(c(Q2342494),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q2342494
type Q502895
value 1
[ANSWER]
[{'concept': 'Q2342494'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?i ) WHERE { ?x property:P725 ?o . ?x rdf:type ontology:Q2342494 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?i = 1 ) }
Nyaruko: Crawling with Love Durarara!! Boku wa Tomodachi ga Sukunai The Girl Who Leapt Through Time Ōkami Kakushi Kyo Kara Maoh! Toaru Hikūshi e no Koiuta No Game No Life-mart Shakugan no Shana Kanojo ga Flag o Oraretara Ro-Kyu-Bu! Muv-Luv
12
action count
action approx
action find_tuple_counts
relation voice actor
type collectable
type common name
value 1
[{'concept': 'collectable'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?i ) WHERE { ?x property:voice_actor ?o . ?x rdf:type ontology:collectable . ?o rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?i = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q290951
P1303
Q34379 Q502895
USER
Which musical instruments can more number of people perform with than Kamancheh ?
(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 Q290951
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q290951 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?o > ?u ) }
Kamancheh
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kamancheh
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Kamancheh property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?u ) }
[]
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 Q290951
relation P1303
type Q34379
[ANSWERS] can more number of people perform with than Kamancheh
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 . ?t property:P1303 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q290951 property:P1303 ?p . ?p rdf:type ontology:Q34379 } } . FILTER ( ?o > ?u ) }
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 more number of people perform with than Kamancheh
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 Kamancheh
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?o ) WHERE { ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name . ?t property:instrument ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Kamancheh property:instrument ?p . ?p rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q201129
P1303
Q34379 Q502895
USER
And how about lyre?
(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 Q201129
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c rdf:type ontology:Q34379 . resource:Q201129 property:P1303 ?c } } . FILTER ( ?u > ?z ) }
lyre
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c rdf:type ontology:musical_instrument . resource:lyre property:instrument ?c } } . FILTER ( ?u > ?z ) }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 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 Q201129
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:P1303 ?j . ?j rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c rdf:type ontology:Q34379 . resource:Q201129 property:P1303 ?c } } . FILTER ( ?u > ?z ) }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?u ) WHERE { ?f property:instrument ?j . ?j rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?z ) WHERE { ?c rdf:type ontology:musical_instrument . resource:lyre property:instrument ?c } } . FILTER ( ?u > ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5994
P61
Q502895
USER
Which person discovered or invented that musical instrument ?
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
piano
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]
common name
Clarification for simple ques.
Q5994
SYSTEM
Did you mean piano ?
Q5994 Q81982 Q80284
(Q5994,P61,c(Q502895)) (Q81982,P61,c(Q502895)) (Q80284,P61,c(Q502895))
[ANSWER]
['Q5994', 'P61', {'concept': 'Q502895'}] ['Q81982', 'P61', {'concept': 'Q502895'}] ['Q80284', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
piano harpsichord viola
Did you mean piano ?
piano
['piano', 'discoverer or inventor', {'concept': 'common name'}] ['harpsichord', 'discoverer or inventor', {'concept': 'common name'}] ['viola', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5994,P61,c(Q502895))
['Q5994', 'P61', {'concept': 'Q502895'}]
['piano', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q301597
SYSTEM
Bartolomeo Cristofori
Q301597
(Q5994,P61,c(Q502895))
action filter_type
action find
entity Q5994
relation P61
type Q502895
[ANSWER] discovered or invented that musical instrument
['Q5994', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q5994 property:P61 ?b }
Bartolomeo Cristofori
Bartolomeo Cristofori discovered or invented that musical instrument
Bartolomeo Cristofori
action filter_type
action find
entity piano
relation discoverer or inventor
type common name
['piano', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:piano property:discoverer_or_inventor ?b }
[]