Simple Question (Direct)
Simple Question
Q6370646
P21
Q290
USER
What is the sex of Karim Robin ?
(Q6370646,P21,c(Q290))
action filter_type
action find
entity Q6370646
relation P21
type Q290
['Q6370646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6370646 property:P21 ?r . ?r rdf:type ontology:Q290 }
Karim Robin
action filter_type
action find
entity Karim Robin
relation gender
type sex
['Karim Robin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Karim_Robin property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6370646,P21,c(Q290))
action filter_type
action find
entity Q6370646
relation P21
type Q290
The sex of Karim Robin is a [ANSWER]
['Q6370646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q6370646 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
The sex of Karim Robin is a male
male
action filter_type
action find
entity Karim Robin
relation gender
type sex
['Karim Robin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Karim_Robin property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6370646
P106
Q12737077
USER
Which occupation has that person as his/her 's career ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q6370646
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6370646 property:P106 ?x }
Karim Robin
action filter_type
action find
entity Karim Robin
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Karim_Robin property:occupation ?x }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q6370646
relation P106
type Q12737077
Player [ANSWER] has that person as his/her 's career
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q12737077 . resource:Q6370646 property:P106 ?x }
association football player
Player association football player has that person as his/her 's career
association football player
action filter_type
action find
entity Karim Robin
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:occupation . resource:Karim_Robin property:occupation ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4175582 Q6370646
P27
Q15617994
USER
Which administrative territories are Karim Robin or Dominik Jędrzejewski a civilian of ?
OR((Q6370646,P27,c(Q15617994)), (Q4175582,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6370646
relation P27
action find
entity Q4175582
relation P27
type Q15617994
{'OR': [['Q6370646', 'P27', {'concept': 'Q15617994'}], ['Q4175582', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?k property:P27 ?i . VALUES ( ?k ) { ( resource:Q6370646 ) ( resource:Q4175582 ) } } . ?i rdf:type ontology:Q15617994 }
Dominik Jędrzejewski Karim Robin
action filter_type
action union
action find
entity Karim Robin
relation country of citizenship
action find
entity Dominik Jędrzejewski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Karim Robin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dominik Jędrzejewski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?k property:country_of_citizenship ?i . VALUES ( ?k ) { ( resource:Karim_Robin ) ( resource:Dominik_Jędrzejewski ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q36
SYSTEM
France, Poland
Q142 Q36
OR((Q6370646,P27,c(Q15617994)), (Q4175582,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6370646
relation P27
action find
entity Q4175582
relation P27
type Q15617994
[ANSWERS] are Karim Robin or Dominik Jędrzejewski a civilian of
{'OR': [['Q6370646', 'P27', {'concept': 'Q15617994'}], ['Q4175582', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?k property:P27 ?i . VALUES ( ?k ) { ( resource:Q6370646 ) ( resource:Q4175582 ) } } . ?i rdf:type ontology:Q15617994 }
France Poland
France and Poland are Karim Robin or Dominik Jędrzejewski a civilian of
France Poland
action filter_type
action union
action find
entity Karim Robin
relation country of citizenship
action find
entity Dominik Jędrzejewski
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Karim Robin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dominik Jędrzejewski', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?k property:country_of_citizenship ?i . VALUES ( ?k ) { ( resource:Karim_Robin ) ( resource:Dominik_Jędrzejewski ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36 Q159
P530
Q1048835
USER
How many political territories have diplomatic associations with Poland and Russia ?
(c(Q1048835),P530,Q36) (c(Q1048835),P530,Q159)
action count
action intersection
action filter_type
action find_reverse
entity Q36
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q159']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { ?l rdf:type ontology:Q1048835 . ?l property:P530 resource:Q36 . ?l property:P530 resource:Q159 . ?l rdf:type ontology:Q1048835 }
Poland Russia
action count
action intersection
action filter_type
action find_reverse
entity Poland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { ?l rdf:type ontology:political_territorial_entity . ?l property:diplomatic_relation resource:Poland . ?l property:diplomatic_relation resource:Russia . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
Q408 Q16 Q183
(c(Q1048835),P530,Q36) (c(Q1048835),P530,Q159)
action count
action intersection
action filter_type
action find_reverse
entity Q36
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q36'] [{'concept': 'Q1048835'}, 'P530', 'Q159']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { ?l rdf:type ontology:Q1048835 . ?l property:P530 resource:Q36 . ?l property:P530 resource:Q159 . ?l rdf:type ontology:Q1048835 }
Australia Canada Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Poland
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Poland'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { ?l rdf:type ontology:political_territorial_entity . ?l property:diplomatic_relation resource:Poland . ?l property:diplomatic_relation resource:Russia . ?l rdf:type ontology:political_territorial_entity }
[]