Simple Question (Direct)
Simple Question
Q779229
P1344
Q16510064
USER
Which sporting event did Kanstantsin Lukashyk take part in ?
(Q779229,P1344,c(Q16510064))
action filter_type
action find
entity Q779229
relation P1344
type Q16510064
['Q779229', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16510064 . resource:Q779229 property:P1344 ?c }
Kanstantsin Lukashyk
action filter_type
action find
entity Kanstantsin Lukashyk
relation participant of
type sporting event
['Kanstantsin Lukashyk', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sporting_event . resource:Kanstantsin_Lukashyk property:participant_of ?c }
[]
sporting event
Q7500761
SYSTEM
Shooting at the 1992 Summer Olympics – Men's 50 metre pistol
Q7500761
(Q779229,P1344,c(Q16510064))
action filter_type
action find
entity Q779229
relation P1344
type Q16510064
Kanstantsin Lukashyk took part in [ANSWER]
['Q779229', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q16510064 . resource:Q779229 property:P1344 ?c }
Shooting at the 1992 Summer Olympics – Men's 50 metre pistol
Kanstantsin Lukashyk took part in Shooting at the 1992 Summer Olympics – Men's 50 metre pistol
Shooting at the 1992 Summer Olympics – Men's 50 metre pistol
action filter_type
action find
entity Kanstantsin Lukashyk
relation participant of
type sporting event
['Kanstantsin Lukashyk', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sporting_event . resource:Kanstantsin_Lukashyk property:participant_of ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q779229 Q9342394
P19
Q56061
USER
How many administrative territories are the birthplace of Kanstantsin Lukashyk or Stanisław Książek ?
(Q779229,P19,c(Q56061)) (Q9342394,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q779229
relation P19
type Q56061
action filter_type
action find
entity Q9342394
relation P19
type Q56061
['Q779229', 'P19', {'concept': 'Q56061'}] ['Q9342394', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { resource:Q779229 property:P19 ?p . ?p rdf:type ontology:Q56061 } UNION { resource:Q9342394 property:P19 ?p . ?p rdf:type ontology:Q56061 } }
Kanstantsin Lukashyk Stanisław Książek
action count
action union
action filter_type
action find
entity Kanstantsin Lukashyk
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Stanisław Książek
relation place of birth
type administrative territorial entity
['Kanstantsin Lukashyk', 'place of birth', {'concept': 'administrative territorial entity'}] ['Stanisław Książek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { resource:Kanstantsin_Lukashyk property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { resource:Stanisław_Książek property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
2
Q270 Q181376
(Q779229,P19,c(Q56061)) (Q9342394,P19,c(Q56061))
action count
action union
action filter_type
action find
entity Q779229
relation P19
type Q56061
action filter_type
action find
entity Q9342394
relation P19
type Q56061
[ANSWER]
['Q779229', 'P19', {'concept': 'Q56061'}] ['Q9342394', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { resource:Q779229 property:P19 ?p . ?p rdf:type ontology:Q56061 } UNION { resource:Q9342394 property:P19 ?p . ?p rdf:type ontology:Q56061 } }
Warsaw Grodno
2
action count
action union
action filter_type
action find
entity Kanstantsin Lukashyk
relation place of birth
type administrative territorial entity
action filter_type
action find
entity Stanisław Książek
relation place of birth
type administrative territorial entity
['Kanstantsin Lukashyk', 'place of birth', {'concept': 'administrative territorial entity'}] ['Stanisław Książek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { resource:Kanstantsin_Lukashyk property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { resource:Stanisław_Książek property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20298402 Q779229
P19
Q56061
USER
Which administrative territories are the places of birth of Kanstantsin Lukashyk or Samuel Crommelin ?
OR((Q779229,P19,c(Q56061)), (Q20298402,P19,c(Q56061)))
action filter_type
action union
action find
entity Q779229
relation P19
action find
entity Q20298402
relation P19
type Q56061
{'OR': [['Q779229', 'P19', {'concept': 'Q56061'}], ['Q20298402', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q779229 property:P19 ?a } UNION { resource:Q20298402 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Samuel Crommelin Kanstantsin Lukashyk
action filter_type
action union
action find
entity Kanstantsin Lukashyk
relation place of birth
action find
entity Samuel Crommelin
relation place of birth
type administrative territorial entity
{'OR': [['Kanstantsin Lukashyk', 'place of birth', {'concept': 'administrative territorial entity'}], ['Samuel Crommelin', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Kanstantsin_Lukashyk property:place_of_birth ?a } UNION { resource:Samuel_Crommelin property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9920 Q181376
SYSTEM
Haarlem, Grodno
Q9920 Q181376
OR((Q779229,P19,c(Q56061)), (Q20298402,P19,c(Q56061)))
action filter_type
action union
action find
entity Q779229
relation P19
action find
entity Q20298402
relation P19
type Q56061
[ANSWERS] are the places of birth of Kanstantsin Lukashyk or Samuel Crommelin
{'OR': [['Q779229', 'P19', {'concept': 'Q56061'}], ['Q20298402', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q779229 property:P19 ?a } UNION { resource:Q20298402 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Haarlem Grodno
Haarlem and Grodno are the places of birth of Kanstantsin Lukashyk or Samuel Crommelin
Haarlem Grodno
action filter_type
action union
action find
entity Kanstantsin Lukashyk
relation place of birth
action find
entity Samuel Crommelin
relation place of birth
type administrative territorial entity
{'OR': [['Kanstantsin Lukashyk', 'place of birth', {'concept': 'administrative territorial entity'}], ['Samuel Crommelin', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Kanstantsin_Lukashyk property:place_of_birth ?a } UNION { resource:Samuel_Crommelin property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9920
P47
Q13220204 Q56061
USER
How many administrative country subdivisions or administrative territories have a shared border with Haarlem ?
(Q9920,P47,c(Q13220204)) (Q9920,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q9920
relation P47
type Q13220204
action filter_type
action find
entity Q9920
relation P47
type Q56061
['Q9920', 'P47', {'concept': 'Q13220204'}] ['Q9920', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?f rdf:type ?v }
Haarlem
action count
action union
action filter_type
action find
entity Haarlem
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Haarlem
relation shares border with
type administrative territorial entity
['Haarlem', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Haarlem', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?v }
[]
second-level administrative country subdivision administrative territorial entity
SYSTEM
5
Q9928 Q9921 Q9908 Q9970 Q9924
(Q9920,P47,c(Q13220204)) (Q9920,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q9920
relation P47
type Q13220204
action filter_type
action find
entity Q9920
relation P47
type Q56061
[ANSWER]
['Q9920', 'P47', {'concept': 'Q13220204'}] ['Q9920', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } . ?f rdf:type ?v }
Heemstede Haarlemmerliede en Spaarnwoude Bloemendaal Velsen Haarlemmermeer
5
action count
action union
action filter_type
action find
entity Haarlem
relation shares border with
type second-level administrative country subdivision
action filter_type
action find
entity Haarlem
relation shares border with
type administrative territorial entity
['Haarlem', 'shares border with', {'concept': 'second-level administrative country subdivision'}] ['Haarlem', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { VALUES ( ?v ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?v }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2877722 Q779229
P27
Q15617994
USER
Which administrative territories do Kanstantsin Lukashyk or Baba Touré belong to ?
OR((Q779229,P27,c(Q15617994)), (Q2877722,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q779229
relation P27
action find
entity Q2877722
relation P27
type Q15617994
{'OR': [['Q779229', 'P27', {'concept': 'Q15617994'}], ['Q2877722', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q779229 property:P27 ?m } UNION { resource:Q2877722 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Baba Touré Kanstantsin Lukashyk
action filter_type
action union
action find
entity Kanstantsin Lukashyk
relation country of citizenship
action find
entity Baba Touré
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kanstantsin Lukashyk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Baba Touré', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Kanstantsin_Lukashyk property:country_of_citizenship ?m } UNION { resource:Baba_Touré property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q1041
SYSTEM
Belarus, Senegal
Q184 Q1041
OR((Q779229,P27,c(Q15617994)), (Q2877722,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q779229
relation P27
action find
entity Q2877722
relation P27
type Q15617994
Kanstantsin Lukashyk or Baba Touré belong to [ANSWERS]
{'OR': [['Q779229', 'P27', {'concept': 'Q15617994'}], ['Q2877722', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q779229 property:P27 ?m } UNION { resource:Q2877722 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Belarus Senegal
Kanstantsin Lukashyk or Baba Touré belong to Belarus and Senegal
Belarus Senegal
action filter_type
action union
action find
entity Kanstantsin Lukashyk
relation country of citizenship
action find
entity Baba Touré
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kanstantsin Lukashyk', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Baba Touré', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Kanstantsin_Lukashyk property:country_of_citizenship ?m } UNION { resource:Baba_Touré property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2877722
P20
Q56061
USER
Where did Baba Touré expire ?
(Q2877722,P20,c(Q56061))
action filter_type
action find
entity Q2877722
relation P20
type Q56061
['Q2877722', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q2877722 property:P20 ?v }
Baba Touré
action filter_type
action find
entity Baba Touré
relation place of death
type administrative territorial entity
['Baba Touré', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Baba_Touré property:place_of_death ?v }
[]
administrative territorial entity
Q1557691
SYSTEM
Guédiawaye
Q1557691
(Q2877722,P20,c(Q56061))
action filter_type
action find
entity Q2877722
relation P20
type Q56061
Baba Touré expired [ANSWER]
['Q2877722', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q2877722 property:P20 ?v }
Guédiawaye
Baba Touré expired Guédiawaye
Guédiawaye
action filter_type
action find
entity Baba Touré
relation place of death
type administrative territorial entity
['Baba Touré', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Baba_Touré property:place_of_death ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1557691
P17
Q15617994
USER
Which administrative territory is that administrative territory a part of ?
(Q1557691,P17,c(Q15617994))
action filter_type
action find
entity Q1557691
relation P17
type Q15617994
['Q1557691', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1557691 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Guédiawaye
action filter_type
action find
entity Guédiawaye
relation country
type designation for an administrative territorial entity
['Guédiawaye', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Guédiawaye property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1041
SYSTEM
Senegal
Q1041
(Q1557691,P17,c(Q15617994))
action filter_type
action find
entity Q1557691
relation P17
type Q15617994
The [ANSWER] is that administrative territory a part of
['Q1557691', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1557691 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Senegal
The Senegal is that administrative territory a part of
Senegal
action filter_type
action find
entity Guédiawaye
relation country
type designation for an administrative territorial entity
['Guédiawaye', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Guédiawaye property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1041 Q124790 Q50059
P47
Q15617994
USER
Is that administrative territory next to the border of Rosora and Campo di Giove ?
(Q1041,P47,Q124790) (Q1041,P47,Q50059)
action is_in
entity Q1041
action intersection
action find_reverse
entity Q124790
relation P47
action find_reverse
entity Q50059
relation P47
['Q1041', 'P47', 'Q124790'] ['Q1041', 'P47', 'Q50059']
ASK WHERE { resource:Q1041 property:P47 resource:Q124790 . resource:Q1041 property:P47 resource:Q50059 }
Senegal Rosora Campo di Giove
action is_in
entity Senegal
action intersection
action find_reverse
entity Rosora
relation shares border with
action find_reverse
entity Campo di Giove
relation shares border with
['Senegal', 'shares border with', 'Rosora'] ['Senegal', 'shares border with', 'Campo di Giove']
ASK WHERE { resource:Senegal property:shares_border_with resource:Rosora . resource:Senegal property:shares_border_with resource:Campo_di_Giove }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1041,P47,Q124790) (Q1041,P47,Q50059)
action is_in
entity Q1041
action intersection
action find_reverse
entity Q124790
relation P47
action find_reverse
entity Q50059
relation P47
[ANSWER]
['Q1041', 'P47', 'Q124790'] ['Q1041', 'P47', 'Q50059']
ASK WHERE { resource:Q1041 property:P47 resource:Q124790 . resource:Q1041 property:P47 resource:Q50059 }
No
action is_in
entity Senegal
action intersection
action find_reverse
entity Rosora
relation shares border with
action find_reverse
entity Campo di Giove
relation shares border with
['Senegal', 'shares border with', 'Rosora'] ['Senegal', 'shares border with', 'Campo di Giove']
ASK WHERE { resource:Senegal property:shares_border_with resource:Rosora . resource:Senegal property:shares_border_with resource:Campo_di_Giove }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q184 Q414 Q251008
P530
Q15617994
USER
Is Belarus known to have diplomatic connections with Argentina and Aying ?
(Q184,P530,Q414) (Q184,P530,Q251008)
action is_in
entity Q184
action intersection
action find_reverse
entity Q414
relation P530
action find_reverse
entity Q251008
relation P530
['Q184', 'P530', 'Q414'] ['Q184', 'P530', 'Q251008']
ASK WHERE { resource:Q184 property:P530 resource:Q414 . resource:Q184 property:P530 resource:Q251008 }
Belarus Argentina Aying
action is_in
entity Belarus
action intersection
action find_reverse
entity Argentina
relation diplomatic relation
action find_reverse
entity Aying
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Argentina'] ['Belarus', 'diplomatic relation', 'Aying']
ASK WHERE { resource:Belarus property:diplomatic_relation resource:Argentina . resource:Belarus property:diplomatic_relation resource:Aying }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q184,P530,Q414) (Q184,P530,Q251008)
action is_in
entity Q184
action intersection
action find_reverse
entity Q414
relation P530
action find_reverse
entity Q251008
relation P530
[ANSWER]
['Q184', 'P530', 'Q414'] ['Q184', 'P530', 'Q251008']
ASK WHERE { resource:Q184 property:P530 resource:Q414 . resource:Q184 property:P530 resource:Q251008 }
YES and NO respectively
action is_in
entity Belarus
action intersection
action find_reverse
entity Argentina
relation diplomatic relation
action find_reverse
entity Aying
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Argentina'] ['Belarus', 'diplomatic relation', 'Aying']
ASK WHERE { resource:Belarus property:diplomatic_relation resource:Argentina . resource:Belarus property:diplomatic_relation resource:Aying }
[]