Simple Question (Direct)
Simple Question
Q6796684
P1303
Q34379
USER
Which musical instrument is played by Maya Dunietz ?
(Q6796684,P1303,c(Q34379))
action filter_type
action find
entity Q6796684
relation P1303
type Q34379
['Q6796684', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { resource:Q6796684 property:P1303 ?v . ?v rdf:type ontology:Q34379 }
Maya Dunietz
action filter_type
action find
entity Maya Dunietz
relation instrument
type musical instrument
['Maya Dunietz', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { resource:Maya_Dunietz property:instrument ?v . ?v rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q6796684,P1303,c(Q34379))
action filter_type
action find
entity Q6796684
relation P1303
type Q34379
[ANSWER] is played by Maya Dunietz
['Q6796684', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { resource:Q6796684 property:P1303 ?v . ?v rdf:type ontology:Q34379 }
piano
Piano is played by Maya Dunietz
piano
action filter_type
action find
entity Maya Dunietz
relation instrument
type musical instrument
['Maya Dunietz', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { resource:Maya_Dunietz property:instrument ?v . ?v rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6796684
P106
Q12737077
USER
What are the professions of that person ?
(Q5994,P106,c(Q12737077))
action filter_type
action find
entity Q6796684
relation P106
type Q12737077
['Q5994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q6796684 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Maya Dunietz
action filter_type
action find
entity Maya Dunietz
relation occupation
type occupation
['piano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Maya_Dunietz property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q177220 Q36834 Q486748
SYSTEM
singer, composer, pianist
Q177220 Q36834 Q486748
(Q5994,P106,c(Q12737077))
action filter_type
action find
entity Q6796684
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q5994', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q6796684 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
singer composer pianist
The professions of that person are singer, composer and pianist
singer composer pianist
action filter_type
action find
entity Maya Dunietz
relation occupation
type occupation
['piano', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Maya_Dunietz property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6796684
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q177220,P27,c(Q15617994)) (Q36834,P27,c(Q15617994)) (Q486748,P27,c(Q15617994))
action filter_type
action find
entity Q6796684
relation P27
type Q15617994
['Q177220', 'P27', {'concept': 'Q15617994'}] ['Q36834', 'P27', {'concept': 'Q15617994'}] ['Q486748', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q6796684 property:P27 ?c }
Maya Dunietz
action filter_type
action find
entity Maya Dunietz
relation country of citizenship
type designation for an administrative territorial entity
['singer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['composer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['pianist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maya_Dunietz property:country_of_citizenship ?c }
[]
designation for an administrative territorial entity
Q801
SYSTEM
Israel
Q801
(Q177220,P27,c(Q15617994)) (Q36834,P27,c(Q15617994)) (Q486748,P27,c(Q15617994))
action filter_type
action find
entity Q6796684
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q177220', 'P27', {'concept': 'Q15617994'}] ['Q36834', 'P27', {'concept': 'Q15617994'}] ['Q486748', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q6796684 property:P27 ?c }
Israel
That person belongs to the Israel
Israel
action filter_type
action find
entity Maya Dunietz
relation country of citizenship
type designation for an administrative territorial entity
['singer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['composer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['pianist', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maya_Dunietz property:country_of_citizenship ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q801 Q17218237
P27
Q502895
USER
Is Shunji Hosaka a native of that administrative territory ?
(Q17218237,P27,Q801)
action is_in
entity Q17218237
action find
entity Q801
relation P27
['Q17218237', 'P27', 'Q801']
ASK WHERE { resource:Q801 property:P27 resource:Q17218237 }
Israel Shunji Hosaka
action is_in
entity Shunji Hosaka
action find
entity Israel
relation country of citizenship
['Shunji Hosaka', 'country of citizenship', 'Israel']
ASK WHERE { resource:Israel property:country_of_citizenship resource:Shunji_Hosaka }
[]
common name
SYSTEM
NO
(Q17218237,P27,Q801)
action is_in
entity Q17218237
action find
entity Q801
relation P27
[ANSWER]
['Q17218237', 'P27', 'Q801']
ASK WHERE { resource:Q801 property:P27 resource:Q17218237 }
No
action is_in
entity Shunji Hosaka
action find
entity Israel
relation country of citizenship
['Shunji Hosaka', 'country of citizenship', 'Israel']
ASK WHERE { resource:Israel property:country_of_citizenship resource:Shunji_Hosaka }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2304161 Q801
P47
Q56061
USER
Which administrative territories share border with Israel or Ottosdal ?
OR((Q801,P47,c(Q56061)), (Q2304161,P47,c(Q56061)))
action filter_type
action union
action find
entity Q801
relation P47
action find
entity Q2304161
relation P47
type Q56061
{'OR': [['Q801', 'P47', {'concept': 'Q56061'}], ['Q2304161', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?a ) { ( resource:Q801 ) ( resource:Q2304161 ) } . ?a property:P47 ?x } . ?x rdf:type ontology:Q56061 }
Ottosdal Israel
action filter_type
action union
action find
entity Israel
relation shares border with
action find
entity Ottosdal
relation shares border with
type administrative territorial entity
{'OR': [['Israel', 'shares border with', {'concept': 'administrative territorial entity'}], ['Ottosdal', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?a ) { ( resource:Israel ) ( resource:Ottosdal ) } . ?a property:shares_border_with ?x } . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2671213 Q7172
SYSTEM
Lichtenburg, Arab League
Q2671213 Q7172
OR((Q801,P47,c(Q56061)), (Q2304161,P47,c(Q56061)))
action filter_type
action union
action find
entity Q801
relation P47
action find
entity Q2304161
relation P47
type Q56061
[ANSWERS] share border with Israel or Ottosdal
{'OR': [['Q801', 'P47', {'concept': 'Q56061'}], ['Q2304161', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?a ) { ( resource:Q801 ) ( resource:Q2304161 ) } . ?a property:P47 ?x } . ?x rdf:type ontology:Q56061 }
Lichtenburg Arab League
Lichtenburg and Arab League share border with Israel or Ottosdal
Lichtenburg Arab League
action filter_type
action union
action find
entity Israel
relation shares border with
action find
entity Ottosdal
relation shares border with
type administrative territorial entity
{'OR': [['Israel', 'shares border with', {'concept': 'administrative territorial entity'}], ['Ottosdal', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?a ) { ( resource:Israel ) ( resource:Ottosdal ) } . ?a property:shares_border_with ?x } . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5881966 Q6796684
P19
Q56061
USER
Which administrative territories were Maya Dunietz or Holly Dunn born ?
OR((Q6796684,P19,c(Q56061)), (Q5881966,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6796684
relation P19
action find
entity Q5881966
relation P19
type Q56061
{'OR': [['Q6796684', 'P19', {'concept': 'Q56061'}], ['Q5881966', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q6796684 property:P19 ?l } UNION { resource:Q5881966 property:P19 ?l } } . ?l rdf:type ontology:Q56061 }
Holly Dunn Maya Dunietz
action filter_type
action union
action find
entity Maya Dunietz
relation place of birth
action find
entity Holly Dunn
relation place of birth
type administrative territorial entity
{'OR': [['Maya Dunietz', 'place of birth', {'concept': 'administrative territorial entity'}], ['Holly Dunn', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Maya_Dunietz property:place_of_birth ?l } UNION { resource:Holly_Dunn property:place_of_birth ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q33935 Q975
SYSTEM
Tel Aviv, San Antonio
Q33935 Q975
OR((Q6796684,P19,c(Q56061)), (Q5881966,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6796684
relation P19
action find
entity Q5881966
relation P19
type Q56061
Maya Dunietz or Holly Dunn were born in [ANSWERS]
{'OR': [['Q6796684', 'P19', {'concept': 'Q56061'}], ['Q5881966', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q6796684 property:P19 ?l } UNION { resource:Q5881966 property:P19 ?l } } . ?l rdf:type ontology:Q56061 }
Tel Aviv San Antonio
Maya Dunietz or Holly Dunn were born in Tel Aviv and San Antonio
Tel Aviv San Antonio
action filter_type
action union
action find
entity Maya Dunietz
relation place of birth
action find
entity Holly Dunn
relation place of birth
type administrative territorial entity
{'OR': [['Maya Dunietz', 'place of birth', {'concept': 'administrative territorial entity'}], ['Holly Dunn', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Maya_Dunietz property:place_of_birth ?l } UNION { resource:Holly_Dunn property:place_of_birth ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have around 2 administrative territories as their registry harbour ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 . ?d property:P532 ?u } GROUP BY ?d } . FILTER ( ?s = 2 ) }
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity . ?d property:port_of_registry ?u } GROUP BY ?d } . FILTER ( ?s = 2 ) }
[]
administrative territorial entity ship type
SYSTEM
4
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 . ?d property:P532 ?u } GROUP BY ?d } . FILTER ( ?s = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
4
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?s ) WHERE { ?d rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity . ?d property:port_of_registry ?u } GROUP BY ?d } . FILTER ( ?s = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q975
P6
Q502895
USER
Which people do San Antonio serve as the head of government for ?
(Q975,P6,c(Q502895))
action filter_type
action find
entity Q975
relation P6
type Q502895
['Q975', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q975 property:P6 ?t . ?t rdf:type ontology:Q502895 }
San Antonio
action filter_type
action find
entity San Antonio
relation head of government
type common name
['San Antonio', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:San_Antonio property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]
common name
Q17721870 Q970720
SYSTEM
Ivy Taylor, Julian Castro
Q17721870 Q970720
(Q975,P6,c(Q502895))
action filter_type
action find
entity Q975
relation P6
type Q502895
San Antonio serve as the head of government for [ANSWERS]
['Q975', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q975 property:P6 ?t . ?t rdf:type ontology:Q502895 }
Ivy Taylor Julian Castro
San Antonio serve as the head of government for Ivy Taylor and Julian Castro
Ivy Taylor Julian Castro
action filter_type
action find
entity San Antonio
relation head of government
type common name
['San Antonio', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:San_Antonio property:head_of_government ?t . ?t rdf:type ontology:common_name }
[]