Simple Question (Direct)
Simple Question
Q8021830
P19
Q56061
USER
Which administrative territory was Willie Steel born in ?
(Q8021830,P19,c(Q56061))
action filter_type
action find
entity Q8021830
relation P19
type Q56061
['Q8021830', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q8021830 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Willie Steel
action filter_type
action find
entity Willie Steel
relation place of birth
type administrative territorial entity
['Willie Steel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Willie_Steel property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q881708
SYSTEM
Blantyre, South Lanarkshire
Q881708
(Q8021830,P19,c(Q56061))
action filter_type
action find
entity Q8021830
relation P19
type Q56061
Willie Steel was born in [ANSWER]
['Q8021830', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q8021830 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Blantyre, South Lanarkshire
Willie Steel was born in Blantyre, South Lanarkshire
Blantyre, South Lanarkshire
action filter_type
action find
entity Willie Steel
relation place of birth
type administrative territorial entity
['Willie Steel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Willie_Steel property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q881708
P138
Q56061
USER
Which administrative territory has that one as its toponym ?
(c(Q56061),P138,Q881708)
action filter_type
action find_reverse
entity Q881708
relation P138
type Q56061
[{'concept': 'Q56061'}, 'P138', 'Q881708']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . ?q property:P138 resource:Q881708 }
Blantyre, South Lanarkshire
action filter_type
action find_reverse
entity Blantyre, South Lanarkshire
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Blantyre, South Lanarkshire']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . ?q property:named_after resource:Blantyre,_South_Lanarkshire }
[]
administrative territorial entity
Q188693
SYSTEM
Blantyre
Q188693
(c(Q56061),P138,Q881708)
action filter_type
action find_reverse
entity Q881708
relation P138
type Q56061
So [ANSWER] has that one as its toponym
[{'concept': 'Q56061'}, 'P138', 'Q881708']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . ?q property:P138 resource:Q881708 }
Blantyre
So Blantyre has that one as its toponym
Blantyre
action filter_type
action find_reverse
entity Blantyre, South Lanarkshire
relation named after
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'named after', 'Blantyre, South Lanarkshire']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . ?q property:named_after resource:Blantyre,_South_Lanarkshire }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q188693
P190
Q56061
USER
Which administrative territories are twin towns of that one ?
(Q188693,P190,c(Q56061))
action filter_type
action find
entity Q188693
relation P190
type Q56061
['Q188693', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q188693 property:P190 ?s . ?s rdf:type ontology:Q56061 }
Blantyre
action filter_type
action find
entity Blantyre
relation sister city
type administrative territorial entity
['Blantyre', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Blantyre property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q181557 Q1715
SYSTEM
Kaohsiung City, Hanover
Q181557 Q1715
(Q188693,P190,c(Q56061))
action filter_type
action find
entity Q188693
relation P190
type Q56061
[ANSWERS] are twin towns of that one
['Q188693', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q188693 property:P190 ?s . ?s rdf:type ontology:Q56061 }
Kaohsiung City Hanover
Kaohsiung City and Hanover are twin towns of that one
Kaohsiung City Hanover
action filter_type
action find
entity Blantyre
relation sister city
type administrative territorial entity
['Blantyre', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Blantyre property:sister_city ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q37333
Q56061
USER
And how about Lublin?
(Q37333,P190,c(Q56061))
action filter_type
action find
entity Q37333
relation P190
type Q56061
['Q37333', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q37333 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Lublin
action filter_type
action find
entity Lublin
relation sister city
type administrative territorial entity
['Lublin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lublin property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q140147 Q26430 Q994
SYSTEM
Brest, Tilburg, Tbilisi
Q994 Q79880 Q156752 Q205905 Q158119 Q7550 Q201051 Q898 Q9871 Q206895 Q140147 Q185289 Q986435 Q55630 Q8810 Q223422 Q26430 Q156726 Q134279 Q46940 Q36036
(Q37333,P190,c(Q56061))
action filter_type
action find
entity Q37333
relation P190
type Q56061
[ANSWERS]
['Q37333', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q37333 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Tbilisi Debrecen Sumy Lancaster Ramallah Lutsk Rishon LeZion Omsk Tilburg Hakkâri Brest Pernik Nykøbing Falster Novi Sad Granada Anápolis Tilburg Ivano-Frankivsk Luhansk Alcalá de Henares Lviv
Brest Tilburg Tbilisi
action filter_type
action find
entity Lublin
relation sister city
type administrative territorial entity
['Lublin', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lublin property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q188693
P19 P21
Q502895
USER
Which people were born at Blantyre and have male as the sex ?
AND((c(Q502895),P19,Q188693), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q188693
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q188693'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n property:P19 resource:Q188693 . ?n property:P21 resource:Q6581097 . ?n rdf:type ontology:Q502895 }
male Blantyre
action filter_type
action intersection
action find_reverse
entity Blantyre
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Blantyre'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n property:place_of_birth resource:Blantyre . ?n property:gender resource:male . ?n rdf:type ontology:common_name }
[]
common name
Q2700585 Q768124 Q14530391 Q20981859 Q4293320 Q2074421 Q1240009 Q639243 Q2758685 Q4717489
SYSTEM
Some of them are Joseph Kamwendo, Victor Nyirenda, Chikondi Banda, Gerald Phiri, Jr., Luke Bruno Milanzi, Peter Wadabwa, Donald Kachamba, Harry Nyirenda, Simplex Nthala, Alex Menzies
Q26838625 Q4140048 Q5112641 Q6549012 Q2700603 Q20981859 Q639243 Q16015908 Q16215471 Q4717489 Q7384294 Q2758685 Q2700585 Q7592681 Q10388299 Q4293320 Q6380161 Q6742603 Q5454819 Q2074383 Q14530391 Q2074421 Q768124 Q369479 Q1240009 Q2758212
AND((c(Q502895),P19,Q188693), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q188693
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Blantyre and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q188693'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?n WHERE { ?n property:P19 resource:Q188693 . ?n property:P21 resource:Q6581097 . ?n rdf:type ontology:Q502895 }
Adam Plunkett Isaac Chilemba Christopher John Banda Limbikani Mzava Moses Chavula Gerald Phiri, Jr. Harry Nyirenda Joe McDonald Erik Paliani Alex Menzies Ryan McCann Simplex Nthala Joseph Kamwendo St Bosseratti Patrick Mabedi Luke Bruno Milanzi Kay Chiromo Malcolm Ross Fisher Kondowe Charles Swini Chikondi Banda Peter Wadabwa Victor Nyirenda Kinnah Phiri Donald Kachamba Jimmy Zakazaka
Joseph Kamwendo, Victor Nyirenda, Chikondi Banda, Gerald Phiri, Jr., Luke Bruno Milanzi, Peter Wadabwa, Donald Kachamba, Harry Nyirenda, Simplex Nthala and Alex Menzies were born at Blantyre and have male as the sex
Joseph Kamwendo Victor Nyirenda Chikondi Banda Gerald Phiri, Jr. Luke Bruno Milanzi Peter Wadabwa Donald Kachamba Harry Nyirenda Simplex Nthala Alex Menzies
action filter_type
action intersection
action find_reverse
entity Blantyre
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Blantyre'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?n WHERE { ?n property:place_of_birth resource:Blantyre . ?n property:gender resource:male . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q511602 Q1715
P190 P20
Q20667921
USER
Which french administrative divisions are twin towns of Hanover or did the expiration of Madame Clicquot Ponsardin occur ?
OR((Q1715,P190,c(Q20667921)), (Q511602,P20,c(Q20667921)))
action filter_type
action union
action find
entity Q1715
relation P190
action find
entity Q511602
relation P20
type Q20667921
{'OR': [['Q1715', 'P190', {'concept': 'Q20667921'}], ['Q511602', 'P20', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1715 property:P190 ?u } UNION { resource:Q511602 property:P20 ?u } } . ?u rdf:type ontology:Q20667921 }
Madame Clicquot Ponsardin Hanover
action filter_type
action union
action find
entity Hanover
relation sister city
action find
entity Madame Clicquot Ponsardin
relation place of death
type type of french administrative division
{'OR': [['Hanover', 'sister city', {'concept': 'type of french administrative division'}], ['Madame Clicquot Ponsardin', 'place of death', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Hanover property:sister_city ?u } UNION { resource:Madame_Clicquot_Ponsardin property:place_of_death ?u } } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6730 Q30974 Q750302
SYSTEM
Perpignan, Rouen, Boursault
Q6730 Q30974 Q750302
OR((Q1715,P190,c(Q20667921)), (Q511602,P20,c(Q20667921)))
action filter_type
action union
action find
entity Q1715
relation P190
action find
entity Q511602
relation P20
type Q20667921
[ANSWERS] are twin towns of Hanover or did the expiration of Madame Clicquot Ponsardin occur
{'OR': [['Q1715', 'P190', {'concept': 'Q20667921'}], ['Q511602', 'P20', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q1715 property:P190 ?u } UNION { resource:Q511602 property:P20 ?u } } . ?u rdf:type ontology:Q20667921 }
Perpignan Rouen Boursault
Perpignan, Rouen and Boursault are twin towns of Hanover or did the expiration of Madame Clicquot Ponsardin occur
Perpignan Rouen Boursault
action filter_type
action union
action find
entity Hanover
relation sister city
action find
entity Madame Clicquot Ponsardin
relation place of death
type type of french administrative division
{'OR': [['Hanover', 'sister city', {'concept': 'type of french administrative division'}], ['Madame Clicquot Ponsardin', 'place of death', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Hanover property:sister_city ?u } UNION { resource:Madame_Clicquot_Ponsardin property:place_of_death ?u } } . ?u rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q67766 Q26430
P47
Q13220204
USER
Which administrative country subdivisions share the border with Tilburg or Cresciano ?
OR((Q26430,P47,c(Q13220204)), (Q67766,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q26430
relation P47
action find
entity Q67766
relation P47
type Q13220204
{'OR': [['Q26430', 'P47', {'concept': 'Q13220204'}], ['Q67766', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Q26430 ) ( resource:Q67766 ) } . ?s property:P47 ?d } . ?d rdf:type ontology:Q13220204 }
Cresciano Tilburg
action filter_type
action union
action find
entity Tilburg
relation shares border with
action find
entity Cresciano
relation shares border with
type second-level administrative country subdivision
{'OR': [['Tilburg', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Cresciano', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Tilburg ) ( resource:Cresciano ) } . ?s property:shares_border_with ?d } . ?d rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q67336 Q9850 Q9857 Q9845 Q68816 Q68003 Q66036 Q9846 Q9829 Q9837
SYSTEM
Some of them are Osogna, Loon op Zand, Oisterwijk, Heusden, Moleno, Claro, Arvigo, Hilvarenbeek, Dongen, Gilze en Rijen
Q9850 Q65687 Q68816 Q9846 Q67336 Q9840 Q70070 Q9857 Q9845 Q9837 Q66036 Q68003 Q9829
OR((Q26430,P47,c(Q13220204)), (Q67766,P47,c(Q13220204)))
action filter_type
action union
action find
entity Q26430
relation P47
action find
entity Q67766
relation P47
type Q13220204
[ANSWERS] share the border with Tilburg or Cresciano
{'OR': [['Q26430', 'P47', {'concept': 'Q13220204'}], ['Q67766', 'P47', {'concept': 'Q13220204'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Q26430 ) ( resource:Q67766 ) } . ?s property:P47 ?d } . ?d rdf:type ontology:Q13220204 }
Loon op Zand San Vittore Moleno Hilvarenbeek Osogna Haaren Preonzo Oisterwijk Heusden Gilze en Rijen Arvigo Claro Dongen
Osogna, Loon op Zand, Oisterwijk, Heusden, Moleno, Claro, Arvigo, Hilvarenbeek, Dongen and Gilze en Rijen share the border with Tilburg or Cresciano
Osogna Loon op Zand Oisterwijk Heusden Moleno Claro Arvigo Hilvarenbeek Dongen Gilze en Rijen
action filter_type
action union
action find
entity Tilburg
relation shares border with
action find
entity Cresciano
relation shares border with
type second-level administrative country subdivision
{'OR': [['Tilburg', 'shares border with', {'concept': 'second-level administrative country subdivision'}], ['Cresciano', 'shares border with', {'concept': 'second-level administrative country subdivision'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?s ) { ( resource:Tilburg ) ( resource:Cresciano ) } . ?s property:shares_border_with ?d } . ?d rdf:type ontology:second-level_administrative_country_subdivision }
[]