Simple Question (Direct)
Simple Question
Q4822434
P106
Q12737077
USER
Which occupation has Daniel Georgiev as his/her 's career ?
(Q4822434,P106,c(Q12737077))
action filter_type
action find
entity Q4822434
relation P106
type Q12737077
['Q4822434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q4822434 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Daniel Georgiev
action filter_type
action find
entity Daniel Georgiev
relation occupation
type occupation
['Daniel Georgiev', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Daniel_Georgiev property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4822434,P106,c(Q12737077))
action filter_type
action find
entity Q4822434
relation P106
type Q12737077
Player [ANSWER] has Daniel Georgiev as his/her 's career
['Q4822434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q4822434 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
association football player
Player association football player has Daniel Georgiev as his/her 's career
association football player
action filter_type
action find
entity Daniel Georgiev
relation occupation
type occupation
['Daniel Georgiev', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Daniel_Georgiev property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4822434
P21
Q290
USER
What is the sex of Daniel Georgiev ?
(Q4822434,P21,c(Q290))
action filter_type
action find
entity Q4822434
relation P21
type Q290
['Q4822434', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4822434 property:P21 ?c . ?c rdf:type ontology:Q290 }
Daniel Georgiev
action filter_type
action find
entity Daniel Georgiev
relation gender
type sex
['Daniel Georgiev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Daniel_Georgiev property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4822434,P21,c(Q290))
action filter_type
action find
entity Q4822434
relation P21
type Q290
The sex of Daniel Georgiev is a [ANSWER]
['Q4822434', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q4822434 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Daniel Georgiev is a male
male
action filter_type
action find
entity Daniel Georgiev
relation gender
type sex
['Daniel Georgiev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Daniel_Georgiev property:gender ?c . ?c rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q1153462 Q20724701
USER
How many characters from Winnie-the-Pooh and city or town in Armenias are a that sex ?
(c(Q1153462),P21,Q6581097) (c(Q20724701),P21,Q6581097) (c(Q1153462),P21,Q6581097) (c(Q20724701),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q1153462
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q20724701
[{'concept': 'Q1153462'}, 'P21', 'Q6581097'] [{'concept': 'Q20724701'}, 'P21', 'Q6581097'] [{'concept': 'Q1153462'}, 'P21', 'Q6581097'] [{'concept': 'Q20724701'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q1153462 } UNION { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q20724701 } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type character from Winnie-the-Pooh
action filter_type
action find_reverse
entity male
relation gender
type city or town in Armenia
[{'concept': 'character from Winnie-the-Pooh'}, 'gender', 'male'] [{'concept': 'city or town in Armenia'}, 'gender', 'male'] [{'concept': 'character from Winnie-the-Pooh'}, 'gender', 'male'] [{'concept': 'city or town in Armenia'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:gender resource:male . ?t rdf:type ontology:character_from_Winnie-the-Pooh } UNION { ?t property:gender resource:male . ?t rdf:type ontology:city_or_town_in_Armenia } }
[]
character from Winnie-the-Pooh city or town in Armenia
SYSTEM
4 characters from Winnie-the-Pooh and 2 city or town in Armenias
Q246477 Q836719 Q2817360 Q1190911 Q4282656 Q2712338
(c(Q1153462),P21,Q6581097) (c(Q20724701),P21,Q6581097) (c(Q1153462),P21,Q6581097) (c(Q20724701),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q1153462
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q20724701
[ANSWER]
[{'concept': 'Q1153462'}, 'P21', 'Q6581097'] [{'concept': 'Q20724701'}, 'P21', 'Q6581097'] [{'concept': 'Q1153462'}, 'P21', 'Q6581097'] [{'concept': 'Q20724701'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q1153462 } UNION { ?t property:P21 resource:Q6581097 . ?t rdf:type ontology:Q20724701 } }
Rabbit Piglet Masis Voskanyan Christopher Robin Vanes Martirosyan Gopher
4 characters from Winnie-the-Pooh and 2 city or town in Armenias
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type character from Winnie-the-Pooh
action filter_type
action find_reverse
entity male
relation gender
type city or town in Armenia
[{'concept': 'character from Winnie-the-Pooh'}, 'gender', 'male'] [{'concept': 'city or town in Armenia'}, 'gender', 'male'] [{'concept': 'character from Winnie-the-Pooh'}, 'gender', 'male'] [{'concept': 'city or town in Armenia'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:gender resource:male . ?t rdf:type ontology:character_from_Winnie-the-Pooh } UNION { ?t property:gender resource:male . ?t rdf:type ontology:city_or_town_in_Armenia } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q39432 Q4822434
P47 P27
Q15617994
USER
Which administrative territories are Daniel Georgiev a civilian of or are bordered by Lonate Pozzolo ?
OR((Q4822434,P27,c(Q15617994)), (Q39432,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4822434
relation P27
action find
entity Q39432
relation P47
type Q15617994
{'OR': [['Q4822434', 'P27', {'concept': 'Q15617994'}], ['Q39432', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q4822434 property:P27 ?f } UNION { resource:Q39432 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Lonate Pozzolo Daniel Georgiev
action filter_type
action union
action find
entity Daniel Georgiev
relation country of citizenship
action find
entity Lonate Pozzolo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Daniel Georgiev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lonate Pozzolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Daniel_Georgiev property:country_of_citizenship ?f } UNION { resource:Lonate_Pozzolo property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42432 Q22070 Q219 Q42825 Q42925 Q40827 Q39630 Q39143 Q22529
SYSTEM
Nosate, Bellinzago Novarese, Bulgaria, Vanzaghello, Castano Primo, Samarate, Ferno, Vizzola Ticino, Oleggio
Q42432 Q22070 Q219 Q42825 Q42925 Q40827 Q39630 Q39143 Q22529
OR((Q4822434,P27,c(Q15617994)), (Q39432,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q4822434
relation P27
action find
entity Q39432
relation P47
type Q15617994
[ANSWERS] are Daniel Georgiev a civilian of or are bordered by Lonate Pozzolo
{'OR': [['Q4822434', 'P27', {'concept': 'Q15617994'}], ['Q39432', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q4822434 property:P27 ?f } UNION { resource:Q39432 property:P47 ?f } } . ?f rdf:type ontology:Q15617994 }
Nosate Bellinzago Novarese Bulgaria Vanzaghello Castano Primo Samarate Ferno Vizzola Ticino Oleggio
Nosate, Bellinzago Novarese, Bulgaria, Vanzaghello, Castano Primo, Samarate, Ferno, Vizzola Ticino and Oleggio are Daniel Georgiev a civilian of or are bordered by Lonate Pozzolo
Nosate Bellinzago Novarese Bulgaria Vanzaghello Castano Primo Samarate Ferno Vizzola Ticino Oleggio
action filter_type
action union
action find
entity Daniel Georgiev
relation country of citizenship
action find
entity Lonate Pozzolo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Daniel Georgiev', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Lonate Pozzolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Daniel_Georgiev property:country_of_citizenship ?f } UNION { resource:Lonate_Pozzolo property:shares_border_with ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1016
P180
Q15617994 Q3305213 Q11060274
USER
Which administrative territories are expressed in greater number of paintings and prints than Libya ?
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P180
type Q3305213
type Q11060274
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P180 resource:Q1016 . { { ?d rdf:type ontology:Q3305213 } UNION { ?d rdf:type ontology:Q11060274 } } } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } } GROUP BY ?q } }
Libya
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity Libya
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:depicts resource:Libya . { { ?d rdf:type ontology:painting } UNION { ?d rdf:type ontology:print } } } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:print ) } } GROUP BY ?q } }
[]
designation for an administrative territorial entity painting print
Q38 Q17 Q712
SYSTEM
Italy, Japan, Fiji
Q3883 Q47505 Q131596 Q712 Q532 Q38 Q80644 Q17 Q13320 Q772 Q82025 Q1273 Q376896 Q34876 Q80591
(c(Q3305213)|c(Q11060274),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action count
action filter_multi_types
action find_reverse
entity Q1016
relation P180
type Q3305213
type Q11060274
[ANSWERS] are expressed in greater number of paintings and prints than Libya
[[{'concept': 'Q3305213'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:P180 resource:Q1016 . { { ?d rdf:type ontology:Q3305213 } UNION { ?d rdf:type ontology:Q11060274 } } } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q11060274 ) } } GROUP BY ?q } }
Catanzaro Dolo farm Fiji village Italy Köngen Japan Savona Drenthe horn Tuscany Grenelle province Atrani
Italy, Japan and Fiji are expressed in greater number of paintings and prints than Libya
Italy Japan Fiji
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action count
action filter_multi_types
action find_reverse
entity Libya
relation depicts
type painting
type print
[[{'concept': 'painting'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { ?d property:depicts resource:Libya . { { ?d rdf:type ontology:painting } UNION { ?d rdf:type ontology:print } } } } . FILTER ( ?b > ?x ) . { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?k . VALUES ( ?k ) { ( ontology:painting ) ( ontology:print ) } } GROUP BY ?q } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q712
P85
Q484692
USER
What is the anthem for that administrative territory ?
(Q712,P85,c(Q484692))
action filter_type
action find
entity Q712
relation P85
type Q484692
['Q712', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q712 property:P85 ?j . ?j rdf:type ontology:Q484692 }
Fiji
action filter_type
action find
entity Fiji
relation anthem
type hymn
['Fiji', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:Fiji property:anthem ?j . ?j rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q17 Q712
(Q38,P85,c(Q484692)) (Q17,P85,c(Q484692)) (Q712,P85,c(Q484692))
[ANSWER]
['Q38', 'P85', {'concept': 'Q484692'}] ['Q17', 'P85', {'concept': 'Q484692'}] ['Q712', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q712 property:P85 ?j . ?j rdf:type ontology:Q484692 }
Italy Japan Fiji
Did you mean Italy ?
Italy
['Italy', 'anthem', {'concept': 'hymn'}] ['Japan', 'anthem', {'concept': 'hymn'}] ['Fiji', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:Fiji property:anthem ?j . ?j rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant Fiji. Could you tell me the answer for that?
(Q712,P85,c(Q484692))
Q712
['Q712', 'P85', {'concept': 'Q484692'}]
['Fiji', 'anthem', {'concept': 'hymn'}]
[]
Q211130
SYSTEM
God Bless Fiji
Q211130
(Q712,P85,c(Q484692))
action filter_type
action find
entity Q712
relation P85
type Q484692
The anthem for that administrative territory is the [ANSWER]
['Q712', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q712 property:P85 ?j . ?j rdf:type ontology:Q484692 }
God Bless Fiji
The anthem for that administrative territory is the God Bless Fiji
God Bless Fiji
action filter_type
action find
entity Fiji
relation anthem
type hymn
['Fiji', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:Fiji property:anthem ?j . ?j rdf:type ontology:hymn }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4662033 Q219
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with Bulgaria or do Aaron Gale belong to ?
OR((Q219,P530,c(Q1048835)), (Q4662033,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q219
relation P530
action find
entity Q4662033
relation P27
type Q1048835
{'OR': [['Q219', 'P530', {'concept': 'Q1048835'}], ['Q4662033', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q219 property:P530 ?d } UNION { resource:Q4662033 property:P27 ?d } } . ?d rdf:type ontology:Q1048835 }
Aaron Gale Bulgaria
action filter_type
action union
action find
entity Bulgaria
relation diplomatic relation
action find
entity Aaron Gale
relation country of citizenship
type political territorial entity
{'OR': [['Bulgaria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Aaron Gale', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Bulgaria property:diplomatic_relation ?d } UNION { resource:Aaron_Gale property:country_of_citizenship ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q664 Q183
SYSTEM
Australia, New Zealand, Germany
Q408 Q664 Q183
OR((Q219,P530,c(Q1048835)), (Q4662033,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q219
relation P530
action find
entity Q4662033
relation P27
type Q1048835
[ANSWERS] hold diplomatic relationship with Bulgaria or do Aaron Gale belong to
{'OR': [['Q219', 'P530', {'concept': 'Q1048835'}], ['Q4662033', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q219 property:P530 ?d } UNION { resource:Q4662033 property:P27 ?d } } . ?d rdf:type ontology:Q1048835 }
Australia New Zealand Germany
Australia, New Zealand and Germany hold diplomatic relationship with Bulgaria or do Aaron Gale belong to
Australia New Zealand Germany
action filter_type
action union
action find
entity Bulgaria
relation diplomatic relation
action find
entity Aaron Gale
relation country of citizenship
type political territorial entity
{'OR': [['Bulgaria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Aaron Gale', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Bulgaria property:diplomatic_relation ?d } UNION { resource:Aaron_Gale property:country_of_citizenship ?d } } . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q664 Q183
P17
Q1048835
USER
Which political territories are Australia, New Zealand and Germany a part of ?
(Q408,P17,c(Q1048835)) (Q664,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q408
relation P17
type Q1048835
action filter_type
action find
entity Q664
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
['Q408', 'P17', {'concept': 'Q1048835'}] ['Q664', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { resource:Q408 property:P17 ?b . ?b rdf:type ontology:Q1048835 } UNION { resource:Q664 property:P17 ?b . ?b rdf:type ontology:Q1048835 } }
Australia New Zealand Germany
action union
action filter_type
action find
entity Australia
relation country
type political territorial entity
action filter_type
action find
entity New Zealand
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Australia', 'country', {'concept': 'political territorial entity'}] ['New Zealand', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Australia property:country ?b . ?b rdf:type ontology:political_territorial_entity } UNION { resource:New_Zealand property:country ?b . ?b rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q408 Q664 Q183
SYSTEM
Australia, New Zealand, Germany
Q408 Q664 Q183
(Q408,P17,c(Q1048835)) (Q664,P17,c(Q1048835)) (Q183,P17,c(Q1048835))
action union
action filter_type
action find
entity Q408
relation P17
type Q1048835
action filter_type
action find
entity Q664
relation P17
type Q1048835
action filter_type
action find
entity Q183
relation P17
type Q1048835
The [ANSWERS] are [ANSWERS] a part of
['Q408', 'P17', {'concept': 'Q1048835'}] ['Q664', 'P17', {'concept': 'Q1048835'}] ['Q183', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { resource:Q408 property:P17 ?b . ?b rdf:type ontology:Q1048835 } UNION { resource:Q664 property:P17 ?b . ?b rdf:type ontology:Q1048835 } }
Australia New Zealand Germany
The Australia, New Zealand and Germany are Australia, New Zealand and Germany a part of
Australia New Zealand Germany
action union
action filter_type
action find
entity Australia
relation country
type political territorial entity
action filter_type
action find
entity New Zealand
relation country
type political territorial entity
action filter_type
action find
entity Germany
relation country
type political territorial entity
['Australia', 'country', {'concept': 'political territorial entity'}] ['New Zealand', 'country', {'concept': 'political territorial entity'}] ['Germany', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { resource:Australia property:country ?b . ?b rdf:type ontology:political_territorial_entity } UNION { resource:New_Zealand property:country ?b . ?b rdf:type ontology:political_territorial_entity } }
[]