Simple Question (Direct)
Simple Question
Q440378
P734
Q101352
USER
Who has the surname Shen Yang ?
(Q440378,P734,c(Q101352))
action filter_type
action find
entity Q440378
relation P734
type Q101352
['Q440378', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?n WHERE { resource:Q440378 property:P734 ?n . ?n rdf:type ontology:Q101352 }
Shen Yang
action filter_type
action find
entity Shen Yang
relation family name
type family name
['Shen Yang', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?n WHERE { resource:Shen_Yang property:family_name ?n . ?n rdf:type ontology:family_name }
[]
family name
Q14523543
SYSTEM
Yang
Q14523543
(Q440378,P734,c(Q101352))
action filter_type
action find
entity Q440378
relation P734
type Q101352
[ANSWER] has the surname Shen [ANSWER]
['Q440378', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?n WHERE { resource:Q440378 property:P734 ?n . ?n rdf:type ontology:Q101352 }
Yang
Yang has the surname Shen Yang
Yang
action filter_type
action find
entity Shen Yang
relation family name
type family name
['Shen Yang', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?n WHERE { resource:Shen_Yang property:family_name ?n . ?n rdf:type ontology:family_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q440378
P19
Q515
USER
Which city was Shen Yang born in ?
(Q440378,P19,c(Q515))
action filter_type
action find
entity Q440378
relation P19
type Q515
['Q440378', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q440378 property:P19 ?n . ?n rdf:type ontology:Q515 }
Shen Yang
action filter_type
action find
entity Shen Yang
relation place of birth
type city
['Shen Yang', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Shen_Yang property:place_of_birth ?n . ?n rdf:type ontology:city }
[]
city
Q16666
SYSTEM
Nanjing
Q16666
(Q440378,P19,c(Q515))
action filter_type
action find
entity Q440378
relation P19
type Q515
Shen Yang was born in [ANSWER]
['Q440378', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q440378 property:P19 ?n . ?n rdf:type ontology:Q515 }
Nanjing
Shen Yang was born in Nanjing
Nanjing
action filter_type
action find
entity Shen Yang
relation place of birth
type city
['Shen Yang', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Shen_Yang property:place_of_birth ?n . ?n rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16666
P190
Q56061
USER
Which administrative territories are sister towns of that city ?
(Q16666,P190,c(Q56061))
action filter_type
action find
entity Q16666
relation P190
type Q56061
['Q16666', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q16666 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Nanjing
action filter_type
action find
entity Nanjing
relation sister city
type administrative territorial entity
['Nanjing', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Nanjing property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2044 Q38022 Q16557
SYSTEM
Florence, St. Louis, Dallas
Q38022 Q185632 Q61089 Q2044 Q16557
(Q16666,P190,c(Q56061))
action filter_type
action find
entity Q16666
relation P190
type Q56061
[ANSWERS] are sister towns of that city
['Q16666', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q16666 property:P190 ?w . ?w rdf:type ontology:Q56061 }
St. Louis Limassol Malacca City Florence Dallas
Florence, St. Louis and Dallas are sister towns of that city
Florence St. Louis Dallas
action filter_type
action find
entity Nanjing
relation sister city
type administrative territorial entity
['Nanjing', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Nanjing property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16557
P1001
Q1752346
USER
Which assembly applies to jurisdiction over that administrative territory ?
(c(Q1752346),P1001,Q16557)
action filter_type
action find_reverse
entity Q16557
relation P1001
type Q1752346
[{'concept': 'Q1752346'}, 'P1001', 'Q16557']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q16557 . ?u rdf:type ontology:Q1752346 }
Dallas
action filter_type
action find_reverse
entity Dallas
relation applies to jurisdiction
type assembly
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Dallas']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:Dallas . ?u rdf:type ontology:assembly }
[]
assembly
Clarification for simple ques.
Q38022
SYSTEM
Did you mean St. Louis ?
Q2044 Q38022 Q16557
(c(Q1752346),P1001,Q2044) (c(Q1752346),P1001,Q38022) (c(Q1752346),P1001,Q16557)
[ANSWER]
[{'concept': 'Q1752346'}, 'P1001', 'Q2044'] [{'concept': 'Q1752346'}, 'P1001', 'Q38022'] [{'concept': 'Q1752346'}, 'P1001', 'Q16557']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q16557 . ?u rdf:type ontology:Q1752346 }
Florence St. Louis Dallas
Did you mean St. Louis ?
St. Louis
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Florence'] [{'concept': 'assembly'}, 'applies to jurisdiction', 'St. Louis'] [{'concept': 'assembly'}, 'applies to jurisdiction', 'Dallas']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:Dallas . ?u rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
USER
No, I meant Dallas. Could you tell me the answer for that?
(c(Q1752346),P1001,Q16557)
Q16557
[{'concept': 'Q1752346'}, 'P1001', 'Q16557']
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Dallas']
[]
Q5211293
SYSTEM
Dallas City Council
Q5211293
(c(Q1752346),P1001,Q16557)
action filter_type
action find_reverse
entity Q16557
relation P1001
type Q1752346
[ANSWER] applies to jurisdiction over that administrative territory
[{'concept': 'Q1752346'}, 'P1001', 'Q16557']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q16557 . ?u rdf:type ontology:Q1752346 }
Dallas City Council
Dallas City Council applies to jurisdiction over that administrative territory
Dallas City Council
action filter_type
action find_reverse
entity Dallas
relation applies to jurisdiction
type assembly
[{'concept': 'assembly'}, 'applies to jurisdiction', 'Dallas']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:Dallas . ?u rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5211293
P194
Q56061
USER
Which administrative territory has that assembly as its representative body ?
(c(Q56061),P194,Q5211293)
action filter_type
action find_reverse
entity Q5211293
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', 'Q5211293']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . ?v property:P194 resource:Q5211293 }
Dallas City Council
action filter_type
action find_reverse
entity Dallas City Council
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', 'Dallas City Council']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . ?v property:legislative_body resource:Dallas_City_Council }
[]
administrative territorial entity
Q16557
SYSTEM
Dallas
Q16557
(c(Q56061),P194,Q5211293)
action filter_type
action find_reverse
entity Q5211293
relation P194
type Q56061
[ANSWER] has that assembly as its representative body
[{'concept': 'Q56061'}, 'P194', 'Q5211293']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . ?v property:P194 resource:Q5211293 }
Dallas
Dallas has that assembly as its representative body
Dallas
action filter_type
action find_reverse
entity Dallas City Council
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', 'Dallas City Council']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . ?v property:legislative_body resource:Dallas_City_Council }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16557 Q591823 Q1641681
P190
Q515
USER
Is Dallas twin city of Náchod and Neveklov ?
(Q16557,P190,Q591823) (Q16557,P190,Q1641681)
action is_in
entity Q16557
action intersection
action find_reverse
entity Q591823
relation P190
action find_reverse
entity Q1641681
relation P190
['Q16557', 'P190', 'Q591823'] ['Q16557', 'P190', 'Q1641681']
ASK WHERE { resource:Q16557 property:P190 resource:Q591823 . resource:Q16557 property:P190 resource:Q1641681 }
Dallas Náchod Neveklov
action is_in
entity Dallas
action intersection
action find_reverse
entity Náchod
relation sister city
action find_reverse
entity Neveklov
relation sister city
['Dallas', 'sister city', 'Náchod'] ['Dallas', 'sister city', 'Neveklov']
ASK WHERE { resource:Dallas property:sister_city resource:Náchod . resource:Dallas property:sister_city resource:Neveklov }
[]
city
SYSTEM
NO
(Q16557,P190,Q591823) (Q16557,P190,Q1641681)
action is_in
entity Q16557
action intersection
action find_reverse
entity Q591823
relation P190
action find_reverse
entity Q1641681
relation P190
[ANSWER]
['Q16557', 'P190', 'Q591823'] ['Q16557', 'P190', 'Q1641681']
ASK WHERE { resource:Q16557 property:P190 resource:Q591823 . resource:Q16557 property:P190 resource:Q1641681 }
No
action is_in
entity Dallas
action intersection
action find_reverse
entity Náchod
relation sister city
action find_reverse
entity Neveklov
relation sister city
['Dallas', 'sister city', 'Náchod'] ['Dallas', 'sister city', 'Neveklov']
ASK WHERE { resource:Dallas property:sister_city resource:Náchod . resource:Dallas property:sister_city resource:Neveklov }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2044 Q51103 Q430776
P190
Q56061
USER
Is Florence partner town of Cali and Nazareth ?
(Q2044,P190,Q51103) (Q2044,P190,Q430776)
action is_in
entity Q2044
action intersection
action find_reverse
entity Q51103
relation P190
action find_reverse
entity Q430776
relation P190
['Q2044', 'P190', 'Q51103'] ['Q2044', 'P190', 'Q430776']
ASK WHERE { resource:Q2044 property:P190 resource:Q51103 . resource:Q2044 property:P190 resource:Q430776 }
Florence Cali Nazareth
action is_in
entity Florence
action intersection
action find_reverse
entity Cali
relation sister city
action find_reverse
entity Nazareth
relation sister city
['Florence', 'sister city', 'Cali'] ['Florence', 'sister city', 'Nazareth']
ASK WHERE { resource:Florence property:sister_city resource:Cali . resource:Florence property:sister_city resource:Nazareth }
[]
administrative territorial entity
SYSTEM
YES
(Q2044,P190,Q51103) (Q2044,P190,Q430776)
action is_in
entity Q2044
action intersection
action find_reverse
entity Q51103
relation P190
action find_reverse
entity Q430776
relation P190
[ANSWER]
['Q2044', 'P190', 'Q51103'] ['Q2044', 'P190', 'Q430776']
ASK WHERE { resource:Q2044 property:P190 resource:Q51103 . resource:Q2044 property:P190 resource:Q430776 }
Yes
action is_in
entity Florence
action intersection
action find_reverse
entity Cali
relation sister city
action find_reverse
entity Nazareth
relation sister city
['Florence', 'sister city', 'Cali'] ['Florence', 'sister city', 'Nazareth']
ASK WHERE { resource:Florence property:sister_city resource:Cali . resource:Florence property:sister_city resource:Nazareth }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16666 Q4771210 Q573064
P17
Q15617994
USER
Is Nanjing situated in Antelope Valley Union High School District and Wobbenbüll ?
(Q16666,P17,Q4771210) (Q16666,P17,Q573064)
action is_in
entity Q16666
action intersection
action find_reverse
entity Q4771210
relation P17
action find_reverse
entity Q573064
relation P17
['Q16666', 'P17', 'Q4771210'] ['Q16666', 'P17', 'Q573064']
ASK WHERE { resource:Q16666 property:P17 resource:Q4771210 . resource:Q16666 property:P17 resource:Q573064 }
Nanjing Antelope Valley Union High School District Wobbenbüll
action is_in
entity Nanjing
action intersection
action find_reverse
entity Antelope Valley Union High School District
relation country
action find_reverse
entity Wobbenbüll
relation country
['Nanjing', 'country', 'Antelope Valley Union High School District'] ['Nanjing', 'country', 'Wobbenbüll']
ASK WHERE { resource:Nanjing property:country resource:Antelope_Valley_Union_High_School_District . resource:Nanjing property:country resource:Wobbenbüll }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q16666,P17,Q4771210) (Q16666,P17,Q573064)
action is_in
entity Q16666
action intersection
action find_reverse
entity Q4771210
relation P17
action find_reverse
entity Q573064
relation P17
[ANSWER]
['Q16666', 'P17', 'Q4771210'] ['Q16666', 'P17', 'Q573064']
ASK WHERE { resource:Q16666 property:P17 resource:Q4771210 . resource:Q16666 property:P17 resource:Q573064 }
No
action is_in
entity Nanjing
action intersection
action find_reverse
entity Antelope Valley Union High School District
relation country
action find_reverse
entity Wobbenbüll
relation country
['Nanjing', 'country', 'Antelope Valley Union High School District'] ['Nanjing', 'country', 'Wobbenbüll']
ASK WHERE { resource:Nanjing property:country resource:Antelope_Valley_Union_High_School_District . resource:Nanjing property:country resource:Wobbenbüll }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16666
P1427
Q14904124
USER
Which key event (ships) originates at that city ?
action filter_type
action find_reverse
entity Q16666
relation P1427
type Q14904124
SELECT DISTINCT ?f WHERE { ?f property:P1427 resource:Q16666 . ?f rdf:type ontology:Q14904124 }
Nanjing
action filter_type
action find_reverse
entity Nanjing
relation start point
type key event (ships)
SELECT DISTINCT ?f WHERE { ?f property:start_point resource:Nanjing . ?f rdf:type ontology:key_event_(ships) }
[]
key event (ships)
Q20024465
SYSTEM
Sinking of Dongfang zhi Xing
Q20024465
action filter_type
action find_reverse
entity Q16666
relation P1427
type Q14904124
Which key event (ships) originates at that city
SELECT DISTINCT ?f WHERE { ?f property:P1427 resource:Q16666 . ?f rdf:type ontology:Q14904124 }
Sinking of Dongfang zhi Xing
Which key event (ships) originates at that city
Sinking of Dongfang zhi Xing
action filter_type
action find_reverse
entity Nanjing
relation start point
type key event (ships)
SELECT DISTINCT ?f WHERE { ?f property:start_point resource:Nanjing . ?f rdf:type ontology:key_event_(ships) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q754730 Q16666
P190
Q515
USER
Which cities are twin cities of Nanjing or Salonta ?
OR((Q16666,P190,c(Q515)), (Q754730,P190,c(Q515)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q754730
relation P190
type Q515
{'OR': [['Q16666', 'P190', {'concept': 'Q515'}], ['Q754730', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q16666 property:P190 ?i } UNION { resource:Q754730 property:P190 ?i } } . ?i rdf:type ontology:Q515 }
Salonta Nanjing
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Salonta
relation sister city
type city
{'OR': [['Nanjing', 'sister city', {'concept': 'city'}], ['Salonta', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Nanjing property:sister_city ?i } UNION { resource:Salonta property:sister_city ?i } } . ?i rdf:type ontology:city }
[]
city
Q679224 Q20921 Q188247 Q178878 Q781435 Q2079 Q645014 Q830394
SYSTEM
Hajdúböszörmény, Daejeon, Sarkad, Békéscsaba, Derecske, Leipzig, Túrkeve, Nagykőrös
Q679224 Q20921 Q188247 Q178878 Q781435 Q2079 Q645014 Q830394
OR((Q16666,P190,c(Q515)), (Q754730,P190,c(Q515)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q754730
relation P190
type Q515
[ANSWERS] are twin cities of Nanjing or Salonta
{'OR': [['Q16666', 'P190', {'concept': 'Q515'}], ['Q754730', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q16666 property:P190 ?i } UNION { resource:Q754730 property:P190 ?i } } . ?i rdf:type ontology:Q515 }
Hajdúböszörmény Daejeon Sarkad Békéscsaba Derecske Leipzig Túrkeve Nagykőrös
Hajdúböszörmény, Daejeon, Sarkad, Békéscsaba, Derecske, Leipzig, Túrkeve and Nagykőrös are twin cities of Nanjing or Salonta
Hajdúböszörmény Daejeon Sarkad Békéscsaba Derecske Leipzig Túrkeve Nagykőrös
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Salonta
relation sister city
type city
{'OR': [['Nanjing', 'sister city', {'concept': 'city'}], ['Salonta', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Nanjing property:sister_city ?i } UNION { resource:Salonta property:sister_city ?i } } . ?i rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1365494 Q16666
P190 P20
Q515
USER
Which cities are twin towns of Nanjing or did Jakob Bürgi expire ?
OR((Q16666,P190,c(Q515)), (Q1365494,P20,c(Q515)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q1365494
relation P20
type Q515
{'OR': [['Q16666', 'P190', {'concept': 'Q515'}], ['Q1365494', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . { { resource:Q16666 property:P190 ?j } UNION { resource:Q1365494 property:P20 ?j } } }
Jakob Bürgi Nanjing
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Jakob Bürgi
relation place of death
type city
{'OR': [['Nanjing', 'sister city', {'concept': 'city'}], ['Jakob Bürgi', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . { { resource:Nanjing property:sister_city ?j } UNION { resource:Jakob_Bürgi property:place_of_death ?j } } }
[]
city
Q20921 Q2079 Q1720
SYSTEM
Daejeon, Leipzig, Mainz
Q20921 Q2079 Q1720
OR((Q16666,P190,c(Q515)), (Q1365494,P20,c(Q515)))
action filter_type
action union
action find
entity Q16666
relation P190
action find
entity Q1365494
relation P20
type Q515
[ANSWERS] are twin towns of Nanjing or did Jakob Bürgi expire
{'OR': [['Q16666', 'P190', {'concept': 'Q515'}], ['Q1365494', 'P20', {'concept': 'Q515'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q515 . { { resource:Q16666 property:P190 ?j } UNION { resource:Q1365494 property:P20 ?j } } }
Daejeon Leipzig Mainz
Daejeon, Leipzig and Mainz are twin towns of Nanjing or did Jakob Bürgi expire
Daejeon Leipzig Mainz
action filter_type
action union
action find
entity Nanjing
relation sister city
action find
entity Jakob Bürgi
relation place of death
type city
{'OR': [['Nanjing', 'sister city', {'concept': 'city'}], ['Jakob Bürgi', 'place of death', {'concept': 'city'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:city . { { resource:Nanjing property:sister_city ?j } UNION { resource:Jakob_Bürgi property:place_of_death ?j } } }
[]