Simple Question (Direct)
Simple Question
Q17492667
P106
Q12737077
USER
What is the job of Anders Gundersen ?
(Q17492667,P106,c(Q12737077))
action filter_type
action find
entity Q17492667
relation P106
type Q12737077
['Q17492667', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q17492667 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Anders Gundersen
action filter_type
action find
entity Anders Gundersen
relation occupation
type occupation
['Anders Gundersen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Anders_Gundersen property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q17492667,P106,c(Q12737077))
action filter_type
action find
entity Q17492667
relation P106
type Q12737077
The job of Anders Gundersen is an [ANSWER]
['Q17492667', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q17492667 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
association football player
The job of Anders Gundersen is an association football player
association football player
action filter_type
action find
entity Anders Gundersen
relation occupation
type occupation
['Anders Gundersen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Anders_Gundersen property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17492667
P21
Q290
USER
Which sex does that person have ?
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q17492667
relation P21
type Q290
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q17492667 property:P21 ?j . ?j rdf:type ontology:Q290 }
Anders Gundersen
action filter_type
action find
entity Anders Gundersen
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Anders_Gundersen property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q937857,P21,c(Q290))
action filter_type
action find
entity Q17492667
relation P21
type Q290
That person has a [ANSWER]
['Q937857', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q17492667 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Anders Gundersen
relation gender
type sex
['association football player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Anders_Gundersen property:gender ?j . ?j rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4494310 Q17492667
P27
Q15617994
USER
Which administrative territories are Anders Gundersen or Aleksandr Khabarov a civilian of ?
OR((Q17492667,P27,c(Q15617994)), (Q4494310,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17492667
relation P27
action find
entity Q4494310
relation P27
type Q15617994
{'OR': [['Q17492667', 'P27', {'concept': 'Q15617994'}], ['Q4494310', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q17492667 property:P27 ?y } UNION { resource:Q4494310 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Aleksandr Khabarov Anders Gundersen
action filter_type
action union
action find
entity Anders Gundersen
relation country of citizenship
action find
entity Aleksandr Khabarov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Anders Gundersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aleksandr Khabarov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Anders_Gundersen property:country_of_citizenship ?y } UNION { resource:Aleksandr_Khabarov property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q159
SYSTEM
Norway, Russia
Q20 Q159
OR((Q17492667,P27,c(Q15617994)), (Q4494310,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q17492667
relation P27
action find
entity Q4494310
relation P27
type Q15617994
[ANSWERS] are Anders Gundersen or Aleksandr Khabarov a civilian of
{'OR': [['Q17492667', 'P27', {'concept': 'Q15617994'}], ['Q4494310', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q17492667 property:P27 ?y } UNION { resource:Q4494310 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Norway Russia
Norway and Russia are Anders Gundersen or Aleksandr Khabarov a civilian of
Norway Russia
action filter_type
action union
action find
entity Anders Gundersen
relation country of citizenship
action find
entity Aleksandr Khabarov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Anders Gundersen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aleksandr Khabarov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Anders_Gundersen property:country_of_citizenship ?y } UNION { resource:Aleksandr_Khabarov property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q20 Q159
P530
Q1048835
USER
Who holds diplomatic relationship with those administrative territories ?
(Q20,P530,c(Q1048835)) (Q159,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . VALUES ( ?a ) { ( resource:Q20 ) ( resource:Q159 ) } . ?a property:P530 ?l }
Norway Russia
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . VALUES ( ?a ) { ( resource:Norway ) ( resource:Russia ) } . ?a property:diplomatic_relation ?l }
[]
political territorial entity
Q183 Q183 Q408
SYSTEM
Australia for 3rd, Germany for 1st, 2nd
Q408 Q16 Q183 Q183 Q408 Q16
(Q20,P530,c(Q1048835)) (Q159,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWERS]
['Q20', 'P530', {'concept': 'Q1048835'}] ['Q159', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . VALUES ( ?a ) { ( resource:Q20 ) ( resource:Q159 ) } . ?a property:P530 ?l }
Australia Canada Germany Germany Australia Canada
Germany, Germany and Australia hold diplomatic relationship with those administrative territories
Germany Germany Australia
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Norway', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Russia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . VALUES ( ?a ) { ( resource:Norway ) ( resource:Russia ) } . ?a property:diplomatic_relation ?l }
[]
Clarification
Simple Question|Single Entity|Indirect
Q183
P138
Q79529
USER
Which chemical substance comes from that political territory ?
(c(Q79529),P138,Q183)
action filter_type
action find_reverse
entity Q183
relation P138
type Q79529
[{'concept': 'Q79529'}, 'P138', 'Q183']
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q183 . ?s rdf:type ontology:Q79529 }
Germany
action filter_type
action find_reverse
entity Germany
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'Germany']
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:Germany . ?s rdf:type ontology:chemical_substance }
[]
chemical substance
Clarification for simple ques.
Q408
SYSTEM
Did you mean Australia ?
Q183 Q183 Q408
(c(Q79529),P138,Q183) (c(Q79529),P138,Q183) (c(Q79529),P138,Q408)
[ANSWER]
[{'concept': 'Q79529'}, 'P138', 'Q183'] [{'concept': 'Q79529'}, 'P138', 'Q183'] [{'concept': 'Q79529'}, 'P138', 'Q408']
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q183 . ?s rdf:type ontology:Q79529 }
Germany Germany Australia
Did you mean Australia ?
Australia
[{'concept': 'chemical substance'}, 'named after', 'Germany'] [{'concept': 'chemical substance'}, 'named after', 'Germany'] [{'concept': 'chemical substance'}, 'named after', 'Australia']
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:Germany . ?s rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q79529),P138,Q183)
Q183
[{'concept': 'Q79529'}, 'P138', 'Q183']
[{'concept': 'chemical substance'}, 'named after', 'Germany']
[]
Q867
SYSTEM
germanium
Q867
(c(Q79529),P138,Q183)
action filter_type
action find_reverse
entity Q183
relation P138
type Q79529
[ANSWER] comes from that political territory
[{'concept': 'Q79529'}, 'P138', 'Q183']
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q183 . ?s rdf:type ontology:Q79529 }
germanium
Germanium comes from that political territory
germanium
action filter_type
action find_reverse
entity Germany
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'Germany']
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:Germany . ?s rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q867
P138
Q1048835
USER
Which political territory is the origin of that chemical substance ?
(Q867,P138,c(Q1048835))
action filter_type
action find
entity Q867
relation P138
type Q1048835
['Q867', 'P138', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q867 property:P138 ?q . ?q rdf:type ontology:Q1048835 }
germanium
action filter_type
action find
entity germanium
relation named after
type political territorial entity
['germanium', 'named after', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:germanium property:named_after ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q867,P138,c(Q1048835))
action filter_type
action find
entity Q867
relation P138
type Q1048835
[ANSWER] is the origin of that chemical substance
['Q867', 'P138', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q867 property:P138 ?q . ?q rdf:type ontology:Q1048835 }
Germany
Germany is the origin of that chemical substance
Germany
action filter_type
action find
entity germanium
relation named after
type political territorial entity
['germanium', 'named after', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:germanium property:named_after ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q183 Q7921307 Q241
P530
Q15617994
USER
Does that political territory have tactful political relations with Veribest Independent School District and Cuba ?
(Q183,P530,Q7921307) (Q183,P530,Q241)
action is_in
entity Q183
action intersection
action find_reverse
entity Q7921307
relation P530
action find_reverse
entity Q241
relation P530
['Q183', 'P530', 'Q7921307'] ['Q183', 'P530', 'Q241']
ASK WHERE { resource:Q183 property:P530 resource:Q7921307 . resource:Q183 property:P530 resource:Q241 }
Germany Veribest Independent School District Cuba
action is_in
entity Germany
action intersection
action find_reverse
entity Veribest Independent School District
relation diplomatic relation
action find_reverse
entity Cuba
relation diplomatic relation
['Germany', 'diplomatic relation', 'Veribest Independent School District'] ['Germany', 'diplomatic relation', 'Cuba']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Veribest_Independent_School_District . resource:Germany property:diplomatic_relation resource:Cuba }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q183,P530,Q7921307) (Q183,P530,Q241)
action is_in
entity Q183
action intersection
action find_reverse
entity Q7921307
relation P530
action find_reverse
entity Q241
relation P530
[ANSWER]
['Q183', 'P530', 'Q7921307'] ['Q183', 'P530', 'Q241']
ASK WHERE { resource:Q183 property:P530 resource:Q7921307 . resource:Q183 property:P530 resource:Q241 }
NO and YES respectively
action is_in
entity Germany
action intersection
action find_reverse
entity Veribest Independent School District
relation diplomatic relation
action find_reverse
entity Cuba
relation diplomatic relation
['Germany', 'diplomatic relation', 'Veribest Independent School District'] ['Germany', 'diplomatic relation', 'Cuba']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Veribest_Independent_School_District . resource:Germany property:diplomatic_relation resource:Cuba }
[]