Simple Question (Direct)
Simple Question
Q379117
P106
Q12737077
USER
Which occupations have Mohombi as his/her 's career ?
(Q379117,P106,c(Q12737077))
action filter_type
action find
entity Q379117
relation P106
type Q12737077
['Q379117', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q379117 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Mohombi
action filter_type
action find
entity Mohombi
relation occupation
type occupation
['Mohombi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohombi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q639669 Q177220
SYSTEM
musician, singer
Q639669 Q177220
(Q379117,P106,c(Q12737077))
action filter_type
action find
entity Q379117
relation P106
type Q12737077
The [ANSWERS] have Mohombi as his/her 's career
['Q379117', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q379117 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
musician singer
The musician and singer have Mohombi as his/her 's career
musician singer
action filter_type
action find
entity Mohombi
relation occupation
type occupation
['Mohombi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Mohombi property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q379117
P19
Q515
USER
Which city is the place of birth of that person ?
(Q639669,P19,c(Q515)) (Q177220,P19,c(Q515))
action filter_type
action find
entity Q379117
relation P19
type Q515
['Q639669', 'P19', {'concept': 'Q515'}] ['Q177220', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q379117 property:P19 ?s . ?s rdf:type ontology:Q515 }
Mohombi
action filter_type
action find
entity Mohombi
relation place of birth
type city
['musician', 'place of birth', {'concept': 'city'}] ['singer', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Mohombi property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
city
Q3838
SYSTEM
Kinshasa
Q3838
(Q639669,P19,c(Q515)) (Q177220,P19,c(Q515))
action filter_type
action find
entity Q379117
relation P19
type Q515
[ANSWER] is the place of birth of that person
['Q639669', 'P19', {'concept': 'Q515'}] ['Q177220', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q379117 property:P19 ?s . ?s rdf:type ontology:Q515 }
Kinshasa
Kinshasa is the place of birth of that person
Kinshasa
action filter_type
action find
entity Mohombi
relation place of birth
type city
['musician', 'place of birth', {'concept': 'city'}] ['singer', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Mohombi property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2502354
P1376
Q15617994 Q515
USER
How many administrative territories have more number of cities as their capital than Principality of Goroden ?
(c(Q515),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_type
action find
entity Q2502354
relation P1376
type Q15617994
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P1376 ?q . ?q rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q2502354 property:P1376 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?m ) }
Principality of Goroden
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_type
action find
entity Principality of Goroden
relation capital of
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:capital_of ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Principality_of_Goroden property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?m ) }
[]
designation for an administrative territorial entity city
SYSTEM
65
Q414 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q515),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_type
action find
entity Q2502354
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P1376 ?q . ?q rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q515 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q2502354 property:P1376 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?m ) }
Argentina Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
65
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_type
action find
entity Principality of Goroden
relation capital of
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:capital_of ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:city } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Principality_of_Goroden property:capital_of ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1263
P1376
Q15617994 Q515
USER
And what about Emilia-Romagna?
(c(Q515),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_type
action find
entity Q1263
relation P1376
type Q15617994
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q15617994 . ?p property:P1376 ?w } GROUP BY ?w } . FILTER ( ?m > ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q1263 property:P1376 ?n . ?n rdf:type ontology:Q15617994 } } }
Emilia-Romagna
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_type
action find
entity Emilia-Romagna
relation capital of
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:city . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:capital_of ?w } GROUP BY ?w } . FILTER ( ?m > ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Emilia-Romagna property:capital_of ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity city
SYSTEM
65
Q414 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q515),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_type
action find
entity Q1263
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:Q515 . ?w rdf:type ontology:Q15617994 . ?p property:P1376 ?w } GROUP BY ?w } . FILTER ( ?m > ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Q1263 property:P1376 ?n . ?n rdf:type ontology:Q15617994 } } }
Argentina Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
65
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_type
action find
entity Emilia-Romagna
relation capital of
type designation for an administrative territorial entity
[{'concept': 'city'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?m ) WHERE { ?p rdf:type ontology:city . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:capital_of ?w } GROUP BY ?w } . FILTER ( ?m > ?l ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?l ) WHERE { resource:Emilia-Romagna property:capital_of ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1263
P159
Q4830453
USER
Which business enterprise has HQ at that administrative territory ?
action filter_type
action find_reverse
entity Q1263
relation P159
type Q4830453
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q4830453 . ?c property:P159 resource:Q1263 }
Emilia-Romagna
action filter_type
action find_reverse
entity Emilia-Romagna
relation headquarters location
type business enterprise
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:business_enterprise . ?c property:headquarters_location resource:Emilia-Romagna }
[]
business enterprise
Q2419971
SYSTEM
Osteria Francescana
Q2419971
action filter_type
action find_reverse
entity Q1263
relation P159
type Q4830453
[ANSWER] has HQ at that administrative territory
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q4830453 . ?c property:P159 resource:Q1263 }
Osteria Francescana
Osteria Francescana has HQ at that administrative territory
Osteria Francescana
action filter_type
action find_reverse
entity Emilia-Romagna
relation headquarters location
type business enterprise
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:business_enterprise . ?c property:headquarters_location resource:Emilia-Romagna }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q175632 Q1263
P159
Q4830453
USER
Or Nuneaton?
OR((c(Q4830453),P159,Q1263), (c(Q4830453),P159,Q175632))
action filter_type
action union
action find_reverse
entity Q1263
relation P159
action find_reverse
entity Q175632
relation P159
type Q4830453
{'OR': [[{'concept': 'Q4830453'}, 'P159', 'Q1263'], [{'concept': 'Q4830453'}, 'P159', 'Q175632']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4830453 . { { ?a property:P159 resource:Q1263 } UNION { ?a property:P159 resource:Q175632 } } }
Nuneaton Emilia-Romagna
action filter_type
action union
action find_reverse
entity Emilia-Romagna
relation headquarters location
action find_reverse
entity Nuneaton
relation headquarters location
type business enterprise
{'OR': [[{'concept': 'business enterprise'}, 'headquarters location', 'Emilia-Romagna'], [{'concept': 'business enterprise'}, 'headquarters location', 'Nuneaton']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:business_enterprise . { { ?a property:headquarters_location resource:Emilia-Romagna } UNION { ?a property:headquarters_location resource:Nuneaton } } }
[]
business enterprise
Q2419971 Q5880870
SYSTEM
Osteria Francescana, Holland & Barrett
Q2419971 Q5880870
OR((c(Q4830453),P159,Q1263), (c(Q4830453),P159,Q175632))
action filter_type
action union
action find_reverse
entity Q1263
relation P159
action find_reverse
entity Q175632
relation P159
type Q4830453
[ANSWERS]
{'OR': [[{'concept': 'Q4830453'}, 'P159', 'Q1263'], [{'concept': 'Q4830453'}, 'P159', 'Q175632']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4830453 . { { ?a property:P159 resource:Q1263 } UNION { ?a property:P159 resource:Q175632 } } }
Osteria Francescana Holland & Barrett
Osteria Francescana Holland & Barrett
action filter_type
action union
action find_reverse
entity Emilia-Romagna
relation headquarters location
action find_reverse
entity Nuneaton
relation headquarters location
type business enterprise
{'OR': [[{'concept': 'business enterprise'}, 'headquarters location', 'Emilia-Romagna'], [{'concept': 'business enterprise'}, 'headquarters location', 'Nuneaton']]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:business_enterprise . { { ?a property:headquarters_location resource:Emilia-Romagna } UNION { ?a property:headquarters_location resource:Nuneaton } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q175632
P190
Q56061 Q515
USER
How many administrative territories and cities are the sister cities of Nuneaton ?
(Q175632,P190,c(Q56061)) (Q175632,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q175632
relation P190
type Q56061
action filter_type
action find
entity Q175632
relation P190
type Q515
['Q175632', 'P190', {'concept': 'Q56061'}] ['Q175632', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?q rdf:type ?y }
Nuneaton
action count
action union
action filter_type
action find
entity Nuneaton
relation sister city
type administrative territorial entity
action filter_type
action find
entity Nuneaton
relation sister city
type city
['Nuneaton', 'sister city', {'concept': 'administrative territorial entity'}] ['Nuneaton', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?y }
[]
administrative territorial entity city
SYSTEM
1 administrative territories and 1 cities
Q3214 Q11953
(Q175632,P190,c(Q56061)) (Q175632,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q175632
relation P190
type Q56061
action filter_type
action find
entity Q175632
relation P190
type Q515
[ANSWER]
['Q175632', 'P190', {'concept': 'Q56061'}] ['Q175632', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?q rdf:type ?y }
Cottbus Guadalajara
1 administrative territories and 1 cities
action count
action union
action filter_type
action find
entity Nuneaton
relation sister city
type administrative territorial entity
action filter_type
action find
entity Nuneaton
relation sister city
type city
['Nuneaton', 'sister city', {'concept': 'administrative territorial entity'}] ['Nuneaton', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q379117 Q217667
P175
Q2031291
USER
How many releases performed Mohombi or Elis ?
(c(Q2031291),P175,Q379117) (c(Q2031291),P175,Q217667)
action count
action union
action filter_type
action find_reverse
entity Q379117
relation P175
type Q2031291
action filter_type
action find_reverse
entity Q217667
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q379117'] [{'concept': 'Q2031291'}, 'P175', 'Q217667']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { ?g property:P175 resource:Q379117 . ?g rdf:type ontology:Q2031291 } UNION { ?g property:P175 resource:Q217667 . ?g rdf:type ontology:Q2031291 } }
Mohombi Elis
action count
action union
action filter_type
action find_reverse
entity Mohombi
relation performer
type release
action filter_type
action find_reverse
entity Elis
relation performer
type release
[{'concept': 'release'}, 'performer', 'Mohombi'] [{'concept': 'release'}, 'performer', 'Elis']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { ?g property:performer resource:Mohombi . ?g rdf:type ontology:release } UNION { ?g property:performer resource:Elis . ?g rdf:type ontology:release } }
[]
release
SYSTEM
9
Q2053490 Q2301614 Q6011165 Q3709205 Q3845263 Q18395054 Q5052127 Q2737116 Q2591136
(c(Q2031291),P175,Q379117) (c(Q2031291),P175,Q217667)
action count
action union
action filter_type
action find_reverse
entity Q379117
relation P175
type Q2031291
action filter_type
action find_reverse
entity Q217667
relation P175
type Q2031291
[ANSWER]
[{'concept': 'Q2031291'}, 'P175', 'Q379117'] [{'concept': 'Q2031291'}, 'P175', 'Q217667']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { ?g property:P175 resource:Q379117 . ?g rdf:type ontology:Q2031291 } UNION { ?g property:P175 resource:Q217667 . ?g rdf:type ontology:Q2031291 } }
Coconut Tree Bumpy Ride In Your Head Dirty Situation Maraca Universe Catharsis Suave Miss Me
9
action count
action union
action filter_type
action find_reverse
entity Mohombi
relation performer
type release
action filter_type
action find_reverse
entity Elis
relation performer
type release
[{'concept': 'release'}, 'performer', 'Mohombi'] [{'concept': 'release'}, 'performer', 'Elis']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { ?g property:performer resource:Mohombi . ?g rdf:type ontology:release } UNION { ?g property:performer resource:Elis . ?g rdf:type ontology:release } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15457309 Q5880870
P937 P159
Q56061
USER
Which administrative territories are the headquarters of Holland & Barrett located or are the work locations of Dietrich Knorr ?
OR((Q5880870,P159,c(Q56061)), (Q15457309,P937,c(Q56061)))
action filter_type
action union
action find
entity Q5880870
relation P159
action find
entity Q15457309
relation P937
type Q56061
{'OR': [['Q5880870', 'P159', {'concept': 'Q56061'}], ['Q15457309', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q5880870 property:P159 ?i } UNION { resource:Q15457309 property:P937 ?i } } }
Dietrich Knorr Holland & Barrett
action filter_type
action union
action find
entity Holland & Barrett
relation headquarters location
action find
entity Dietrich Knorr
relation work location
type administrative territorial entity
{'OR': [['Holland & Barrett', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Dietrich Knorr', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Holland_&_Barrett property:headquarters_location ?i } UNION { resource:Dietrich_Knorr property:work_location ?i } } }
[]
administrative territorial entity
Q175632 Q1726
SYSTEM
Nuneaton, Munich
Q175632 Q1726
OR((Q5880870,P159,c(Q56061)), (Q15457309,P937,c(Q56061)))
action filter_type
action union
action find
entity Q5880870
relation P159
action find
entity Q15457309
relation P937
type Q56061
[ANSWERS] are the headquarters of Holland & Barrett located or are the work locations of Dietrich Knorr
{'OR': [['Q5880870', 'P159', {'concept': 'Q56061'}], ['Q15457309', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q5880870 property:P159 ?i } UNION { resource:Q15457309 property:P937 ?i } } }
Nuneaton Munich
Nuneaton and Munich are the headquarters of Holland & Barrett located or are the work locations of Dietrich Knorr
Nuneaton Munich
action filter_type
action union
action find
entity Holland & Barrett
relation headquarters location
action find
entity Dietrich Knorr
relation work location
type administrative territorial entity
{'OR': [['Holland & Barrett', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Dietrich Knorr', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Holland_&_Barrett property:headquarters_location ?i } UNION { resource:Dietrich_Knorr property:work_location ?i } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q175632
P190
Q515
USER
Which city is twin town of that administrative territory ?
(Q175632,P190,c(Q515))
action filter_type
action find
entity Q175632
relation P190
type Q515
['Q175632', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q175632 property:P190 ?c . ?c rdf:type ontology:Q515 }
Nuneaton
action filter_type
action find
entity Nuneaton
relation sister city
type city
['Nuneaton', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Nuneaton property:sister_city ?c . ?c rdf:type ontology:city }
[]
city
Clarification for simple ques.
Q175632
SYSTEM
Did you mean Nuneaton ?
Q175632 Q1726
(Q175632,P190,c(Q515)) (Q1726,P190,c(Q515))
[ANSWER]
['Q175632', 'P190', {'concept': 'Q515'}] ['Q1726', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q175632 property:P190 ?c . ?c rdf:type ontology:Q515 }
Nuneaton Munich
Did you mean Nuneaton ?
Nuneaton
['Nuneaton', 'sister city', {'concept': 'city'}] ['Munich', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Nuneaton property:sister_city ?c . ?c rdf:type ontology:city }
[]
Simple Question (Coreferenced)
USER
Yes
(Q175632,P190,c(Q515))
['Q175632', 'P190', {'concept': 'Q515'}]
['Nuneaton', 'sister city', {'concept': 'city'}]
[]
Q3214
SYSTEM
Cottbus
Q3214
(Q175632,P190,c(Q515))
action filter_type
action find
entity Q175632
relation P190
type Q515
[ANSWER] is twin town of that administrative territory
['Q175632', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q175632 property:P190 ?c . ?c rdf:type ontology:Q515 }
Cottbus
Cottbus is twin town of that administrative territory
Cottbus
action filter_type
action find
entity Nuneaton
relation sister city
type city
['Nuneaton', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Nuneaton property:sister_city ?c . ?c rdf:type ontology:city }
[]