Simple Question (Direct)
Simple Question
Q18510183
P19
Q56061
USER
Which administrative territory was Anatoly Pankov born in ?
(Q18510183,P19,c(Q56061))
action filter_type
action find
entity Q18510183
relation P19
type Q56061
['Q18510183', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q18510183 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Anatoly Pankov
action filter_type
action find
entity Anatoly Pankov
relation place of birth
type administrative territorial entity
['Anatoly Pankov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Anatoly_Pankov property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q18510183,P19,c(Q56061))
action filter_type
action find
entity Q18510183
relation P19
type Q56061
Anatoly Pankov was born in [ANSWER]
['Q18510183', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q18510183 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Moscow
Anatoly Pankov was born in Moscow
Moscow
action filter_type
action find
entity Anatoly Pankov
relation place of birth
type administrative territorial entity
['Anatoly Pankov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Anatoly_Pankov property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18510183
P27
Q15617994
USER
Which administrative territory is Anatoly Pankov a civilian of ?
(Q18510183,P27,c(Q15617994))
action filter_type
action find
entity Q18510183
relation P27
type Q15617994
['Q18510183', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q18510183 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Anatoly Pankov
action filter_type
action find
entity Anatoly Pankov
relation country of citizenship
type designation for an administrative territorial entity
['Anatoly Pankov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Anatoly_Pankov property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q18510183,P27,c(Q15617994))
action filter_type
action find
entity Q18510183
relation P27
type Q15617994
[ANSWER] is Anatoly Pankov a civilian of
['Q18510183', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q18510183 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Russia
Russia is Anatoly Pankov a civilian of
Russia
action filter_type
action find
entity Anatoly Pankov
relation country of citizenship
type designation for an administrative territorial entity
['Anatoly Pankov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Anatoly_Pankov property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3018385
Q15617994
USER
And how about David Mata?
(Q3018385,P27,c(Q15617994))
action filter_type
action find
entity Q3018385
relation P27
type Q15617994
['Q3018385', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q3018385 property:P27 ?j }
David Mata
action filter_type
action find
entity David Mata
relation country of citizenship
type designation for an administrative territorial entity
['David Mata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:David_Mata property:country_of_citizenship ?j }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3018385,P27,c(Q15617994))
action filter_type
action find
entity Q3018385
relation P27
type Q15617994
[ANSWER]
['Q3018385', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . resource:Q3018385 property:P27 ?j }
France
France
action filter_type
action find
entity David Mata
relation country of citizenship
type designation for an administrative territorial entity
['David Mata', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:David_Mata property:country_of_citizenship ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3018385
P106
Q12737077
USER
What does David Mata do for a living ?
(Q3018385,P106,c(Q12737077))
action filter_type
action find
entity Q3018385
relation P106
type Q12737077
['Q3018385', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3018385 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
David Mata
action filter_type
action find
entity David Mata
relation occupation
type occupation
['David Mata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:David_Mata property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q1930187
SYSTEM
journalist
Q1930187
(Q3018385,P106,c(Q12737077))
action filter_type
action find
entity Q3018385
relation P106
type Q12737077
[ANSWER] David Mata does for a living
['Q3018385', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3018385 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
journalist
Journalist David Mata does for a living
journalist
action filter_type
action find
entity David Mata
relation occupation
type occupation
['David Mata', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:David_Mata property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3018385
P108
Q11032
USER
Which newspaper does David Mata work for ?
(Q3018385,P108,c(Q11032))
action filter_type
action find
entity Q3018385
relation P108
type Q11032
['Q3018385', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?o WHERE { resource:Q3018385 property:P108 ?o . ?o rdf:type ontology:Q11032 }
David Mata
action filter_type
action find
entity David Mata
relation employer
type newspaper
['David Mata', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?o WHERE { resource:David_Mata property:employer ?o . ?o rdf:type ontology:newspaper }
[]
newspaper
Q12461
SYSTEM
Le Monde
Q12461
(Q3018385,P108,c(Q11032))
action filter_type
action find
entity Q3018385
relation P108
type Q11032
David Mata works in [ANSWER]
['Q3018385', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?o WHERE { resource:Q3018385 property:P108 ?o . ?o rdf:type ontology:Q11032 }
Le Monde
David Mata works in Le Monde
Le Monde
action filter_type
action find
entity David Mata
relation employer
type newspaper
['David Mata', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?o WHERE { resource:David_Mata property:employer ?o . ?o rdf:type ontology:newspaper }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3430800
Q11032
USER
And how about Richard Gott?
(Q3430800,P108,c(Q11032))
action filter_type
action find
entity Q3430800
relation P108
type Q11032
['Q3430800', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?a WHERE { resource:Q3430800 property:P108 ?a . ?a rdf:type ontology:Q11032 }
Richard Gott
action filter_type
action find
entity Richard Gott
relation employer
type newspaper
['Richard Gott', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?a WHERE { resource:Richard_Gott property:employer ?a . ?a rdf:type ontology:newspaper }
[]
newspaper
Q11148
SYSTEM
The Guardian
Q11148
(Q3430800,P108,c(Q11032))
action filter_type
action find
entity Q3430800
relation P108
type Q11032
[ANSWER]
['Q3430800', 'P108', {'concept': 'Q11032'}]
SELECT DISTINCT ?a WHERE { resource:Q3430800 property:P108 ?a . ?a rdf:type ontology:Q11032 }
The Guardian
The Guardian
action filter_type
action find
entity Richard Gott
relation employer
type newspaper
['Richard Gott', 'employer', {'concept': 'newspaper'}]
SELECT DISTINCT ?a WHERE { resource:Richard_Gott property:employer ?a . ?a rdf:type ontology:newspaper }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q11148 Q567111
P495
Q15617994
USER
Is Flörsheim-Dalsheim the country of origin of that newspaper ?
(Q11148,P495,Q567111)
action is_in
entity Q567111
action find
entity Q11148
relation P495
['Q11148', 'P495', 'Q567111']
ASK WHERE { resource:Q11148 property:P495 resource:Q567111 }
The Guardian Flörsheim-Dalsheim
action is_in
entity Flörsheim-Dalsheim
action find
entity The Guardian
relation country of origin
['The Guardian', 'country of origin', 'Flörsheim-Dalsheim']
ASK WHERE { resource:The_Guardian property:country_of_origin resource:Flörsheim-Dalsheim }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q11148,P495,Q567111)
action is_in
entity Q567111
action find
entity Q11148
relation P495
[ANSWER]
['Q11148', 'P495', 'Q567111']
ASK WHERE { resource:Q11148 property:P495 resource:Q567111 }
No
action is_in
entity Flörsheim-Dalsheim
action find
entity The Guardian
relation country of origin
['The Guardian', 'country of origin', 'Flörsheim-Dalsheim']
ASK WHERE { resource:The_Guardian property:country_of_origin resource:Flörsheim-Dalsheim }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P112
Q502895
USER
Which person founded Moscow ?
(Q649,P112,c(Q502895))
action filter_type
action find
entity Q649
relation P112
type Q502895
['Q649', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q649 property:P112 ?i . ?i rdf:type ontology:Q502895 }
Moscow
action filter_type
action find
entity Moscow
relation founder
type common name
['Moscow', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Moscow property:founder ?i . ?i rdf:type ontology:common_name }
[]
common name
Q275106
SYSTEM
Yuri Dolgorukiy
Q275106
(Q649,P112,c(Q502895))
action filter_type
action find
entity Q649
relation P112
type Q502895
[ANSWER] founded Moscow
['Q649', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q649 property:P112 ?i . ?i rdf:type ontology:Q502895 }
Yuri Dolgorukiy
Yuri Dolgorukiy founded Moscow
Yuri Dolgorukiy
action filter_type
action find
entity Moscow
relation founder
type common name
['Moscow', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Moscow property:founder ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P35
Q502895
USER
Which people have the highest formal authority in France ?
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q142 property:P35 ?n . ?n rdf:type ontology:Q502895 }
France
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:France property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
common name
Q2105 Q2042 Q2038
SYSTEM
Jacques Chirac, Charles de Gaulle, François Mitterrand
Q2105 Q2038 Q157 Q329 Q2042 Q12950 Q2185 Q2124
(Q142,P35,c(Q502895))
action filter_type
action find
entity Q142
relation P35
type Q502895
[ANSWERS] have the highest formal authority in France
['Q142', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q142 property:P35 ?n . ?n rdf:type ontology:Q502895 }
Jacques Chirac François Mitterrand François Hollande Nicolas Sarkozy Charles de Gaulle Alain Poher Georges Pompidou Valéry Giscard d'Estaing
Jacques Chirac, Charles de Gaulle and François Mitterrand have the highest formal authority in France
Jacques Chirac Charles de Gaulle François Mitterrand
action filter_type
action find
entity France
relation head of state
type common name
['France', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:France property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q565856
P35
Q15617994
USER
Did Bundenthal elect those people as their head of state ?
(Q565856,P35,Q2105) (Q565856,P35,Q2042) (Q565856,P35,Q2038)
action is_in
entity prev_answer
action find
entity Q565856
relation P35
['Q565856', 'P35', 'Q2105'] ['Q565856', 'P35', 'Q2042'] ['Q565856', 'P35', 'Q2038']
ASK WHERE { resource:Q565856 property:P35 ?a . VALUES ( ?a ) { ( resource:Q2105 ) ( resource:Q2038 ) ( resource:Q157 ) } }
Bundenthal
action is_in
entity prev_answer
action find
entity Bundenthal
relation head of state
['Bundenthal', 'head of state', 'Jacques Chirac'] ['Bundenthal', 'head of state', 'Charles de Gaulle'] ['Bundenthal', 'head of state', 'François Mitterrand']
ASK WHERE { resource:Bundenthal property:head_of_state ?a . VALUES ( ?a ) { ( resource:Jacques_Chirac ) ( resource:François_Mitterrand ) ( resource:François_Hollande ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q565856,P35,Q2105) (Q565856,P35,Q2042) (Q565856,P35,Q2038)
action is_in
entity prev_answer
action find
entity Q565856
relation P35
[ANSWER]
['Q565856', 'P35', 'Q2105'] ['Q565856', 'P35', 'Q2042'] ['Q565856', 'P35', 'Q2038']
ASK WHERE { resource:Q565856 property:P35 ?a . VALUES ( ?a ) { ( resource:Q2105 ) ( resource:Q2038 ) ( resource:Q157 ) } }
No
action is_in
entity prev_answer
action find
entity Bundenthal
relation head of state
['Bundenthal', 'head of state', 'Jacques Chirac'] ['Bundenthal', 'head of state', 'Charles de Gaulle'] ['Bundenthal', 'head of state', 'François Mitterrand']
ASK WHERE { resource:Bundenthal property:head_of_state ?a . VALUES ( ?a ) { ( resource:Jacques_Chirac ) ( resource:François_Mitterrand ) ( resource:François_Hollande ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q159 Q1650767
P530
Q1048835
USER
Does Valbona have diplomatic relationships with Russia ?
(Q159,P530,Q1650767)
action is_in
entity Q1650767
action find
entity Q159
relation P530
['Q159', 'P530', 'Q1650767']
ASK WHERE { resource:Q159 property:P530 resource:Q1650767 }
Russia Valbona
action is_in
entity Valbona
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Valbona']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Valbona }
[]
political territorial entity
SYSTEM
NO
(Q159,P530,Q1650767)
action is_in
entity Q1650767
action find
entity Q159
relation P530
[ANSWER]
['Q159', 'P530', 'Q1650767']
ASK WHERE { resource:Q159 property:P530 resource:Q1650767 }
No
action is_in
entity Valbona
action find
entity Russia
relation diplomatic relation
['Russia', 'diplomatic relation', 'Valbona']
ASK WHERE { resource:Russia property:diplomatic_relation resource:Valbona }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q649 Q2807 Q5181729
P190
Q56061
USER
Is Moscow twin town of Madrid and Craigmont, Ontario ?
(Q649,P190,Q2807) (Q649,P190,Q5181729)
action is_in
entity Q649
action intersection
action find_reverse
entity Q2807
relation P190
action find_reverse
entity Q5181729
relation P190
['Q649', 'P190', 'Q2807'] ['Q649', 'P190', 'Q5181729']
ASK WHERE { resource:Q649 property:P190 resource:Q2807 . resource:Q649 property:P190 resource:Q5181729 }
Moscow Madrid Craigmont, Ontario
action is_in
entity Moscow
action intersection
action find_reverse
entity Madrid
relation sister city
action find_reverse
entity Craigmont, Ontario
relation sister city
['Moscow', 'sister city', 'Madrid'] ['Moscow', 'sister city', 'Craigmont, Ontario']
ASK WHERE { resource:Moscow property:sister_city resource:Madrid . resource:Moscow property:sister_city resource:Craigmont,_Ontario }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q649,P190,Q2807) (Q649,P190,Q5181729)
action is_in
entity Q649
action intersection
action find_reverse
entity Q2807
relation P190
action find_reverse
entity Q5181729
relation P190
[ANSWER]
['Q649', 'P190', 'Q2807'] ['Q649', 'P190', 'Q5181729']
ASK WHERE { resource:Q649 property:P190 resource:Q2807 . resource:Q649 property:P190 resource:Q5181729 }
YES and NO respectively
action is_in
entity Moscow
action intersection
action find_reverse
entity Madrid
relation sister city
action find_reverse
entity Craigmont, Ontario
relation sister city
['Moscow', 'sister city', 'Madrid'] ['Moscow', 'sister city', 'Craigmont, Ontario']
ASK WHERE { resource:Moscow property:sister_city resource:Madrid . resource:Moscow property:sister_city resource:Craigmont,_Ontario }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q483994
P1303
Q34379 Q502895
USER
Which musical instruments are played by more number of people than Kazoo ?
(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 Q483994
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v rdf:type ontology:Q34379 . resource:Q483994 property:P1303 ?v } } . FILTER ( ?f > ?c ) }
Kazoo
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v rdf:type ontology:musical_instrument . resource:Kazoo property:instrument ?v } } . FILTER ( ?f > ?c ) }
[]
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 Q483994
relation P1303
type Q34379
[ANSWERS] are played by more number of people than Kazoo
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v rdf:type ontology:Q34379 . resource:Q483994 property:P1303 ?v } } . FILTER ( ?f > ?c ) }
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 and viola are played by more number of people than Kazoo
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 Kazoo
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v rdf:type ontology:musical_instrument . resource:Kazoo property:instrument ?v } } . FILTER ( ?f > ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q80019
P1303
Q34379 Q502895
USER
And what about double bass?
(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 Q80019
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?k ) WHERE { ?b rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ontology:Q34379 . resource:Q80019 property:P1303 ?f } } . FILTER ( ?k > ?v ) }
double bass
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity double bass
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?k ) WHERE { ?b rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ontology:musical_instrument . resource:double_bass property:instrument ?f } } . FILTER ( ?k > ?v ) }
[]
musical instrument common name
Q5994 Q46185 Q8338
SYSTEM
piano, bass guitar, trumpet
Q46185 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309
(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 Q80019
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?k ) WHERE { ?b rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ontology:Q34379 . resource:Q80019 property:P1303 ?f } } . FILTER ( ?k > ?v ) }
bass guitar piano trumpet cello violin organ drum kit
piano bass guitar trumpet
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity double bass
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?k ) WHERE { ?b rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?v ) WHERE { ?f rdf:type ontology:musical_instrument . resource:double_bass property:instrument ?f } } . FILTER ( ?k > ?v ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21606820
P1303
Q502895
USER
Does Johny Rabenantoandro know to play those musical instruments ?
(Q21606820,P1303,Q5994) (Q21606820,P1303,Q46185) (Q21606820,P1303,Q8338)
action is_in
entity prev_answer
action find
entity Q21606820
relation P1303
['Q21606820', 'P1303', 'Q5994'] ['Q21606820', 'P1303', 'Q46185'] ['Q21606820', 'P1303', 'Q8338']
ASK WHERE { resource:Q21606820 property:P1303 ?z . VALUES ( ?z ) { ( resource:Q46185 ) ( resource:Q5994 ) ( resource:Q8338 ) } }
Johny Rabenantoandro
action is_in
entity prev_answer
action find
entity Johny Rabenantoandro
relation instrument
['Johny Rabenantoandro', 'instrument', 'piano'] ['Johny Rabenantoandro', 'instrument', 'bass guitar'] ['Johny Rabenantoandro', 'instrument', 'trumpet']
ASK WHERE { resource:Johny_Rabenantoandro property:instrument ?z . VALUES ( ?z ) { ( resource:bass_guitar ) ( resource:piano ) ( resource:trumpet ) } }
[]
common name
SYSTEM
NO
(Q21606820,P1303,Q5994) (Q21606820,P1303,Q46185) (Q21606820,P1303,Q8338)
action is_in
entity prev_answer
action find
entity Q21606820
relation P1303
[ANSWER]
['Q21606820', 'P1303', 'Q5994'] ['Q21606820', 'P1303', 'Q46185'] ['Q21606820', 'P1303', 'Q8338']
ASK WHERE { resource:Q21606820 property:P1303 ?z . VALUES ( ?z ) { ( resource:Q46185 ) ( resource:Q5994 ) ( resource:Q8338 ) } }
No
action is_in
entity prev_answer
action find
entity Johny Rabenantoandro
relation instrument
['Johny Rabenantoandro', 'instrument', 'piano'] ['Johny Rabenantoandro', 'instrument', 'bass guitar'] ['Johny Rabenantoandro', 'instrument', 'trumpet']
ASK WHERE { resource:Johny_Rabenantoandro property:instrument ?z . VALUES ( ?z ) { ( resource:bass_guitar ) ( resource:piano ) ( resource:trumpet ) } }
[]