Simple Question (Direct)
Simple Question
Q3808517
P54
Q1194951
USER
Which national sports team is Jo Bergsvand a member of ?
(Q3808517,P54,c(Q1194951))
action filter_type
action find
entity Q3808517
relation P54
type Q1194951
['Q3808517', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q3808517 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Jo Bergsvand
action filter_type
action find
entity Jo Bergsvand
relation member of sports team
type national sports team
['Jo Bergsvand', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Jo_Bergsvand property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
national sports team
Q184387
SYSTEM
Norway national football team
Q184387
(Q3808517,P54,c(Q1194951))
action filter_type
action find
entity Q3808517
relation P54
type Q1194951
The [ANSWER] is Jo Bergsvand a member of
['Q3808517', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q3808517 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Norway national football team
The Norway national football team is Jo Bergsvand a member of
Norway national football team
action filter_type
action find
entity Jo Bergsvand
relation member of sports team
type national sports team
['Jo Bergsvand', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Jo_Bergsvand property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q184387
P1532
Q15617994
USER
Which administrative territory is represented by that national sports team ?
(Q184387,P1532,c(Q15617994))
action filter_type
action find
entity Q184387
relation P1532
type Q15617994
['Q184387', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q184387 property:P1532 ?q . ?q rdf:type ontology:Q15617994 }
Norway national football team
action filter_type
action find
entity Norway national football team
relation country for sport
type designation for an administrative territorial entity
['Norway national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Norway_national_football_team property:country_for_sport ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q184387,P1532,c(Q15617994))
action filter_type
action find
entity Q184387
relation P1532
type Q15617994
The [ANSWER] is represented by that national sports team
['Q184387', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q184387 property:P1532 ?q . ?q rdf:type ontology:Q15617994 }
Norway
The Norway is represented by that national sports team
Norway
action filter_type
action find
entity Norway national football team
relation country for sport
type designation for an administrative territorial entity
['Norway national football team', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Norway_national_football_team property:country_for_sport ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11366222 Q3808517
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Jo Bergsvand or Kisaburō Nakane ?
OR((Q3808517,P27,c(Q15617994)), (Q11366222,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3808517
relation P27
action find
entity Q11366222
relation P27
type Q15617994
{'OR': [['Q3808517', 'P27', {'concept': 'Q15617994'}], ['Q11366222', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?s property:P27 ?r . VALUES ( ?s ) { ( resource:Q3808517 ) ( resource:Q11366222 ) } } . ?r rdf:type ontology:Q15617994 }
Kisaburō Nakane Jo Bergsvand
action filter_type
action union
action find
entity Jo Bergsvand
relation country of citizenship
action find
entity Kisaburō Nakane
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jo Bergsvand', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kisaburō Nakane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?s property:country_of_citizenship ?r . VALUES ( ?s ) { ( resource:Jo_Bergsvand ) ( resource:Kisaburō_Nakane ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q17
SYSTEM
Norway, Japan
Q20 Q17
OR((Q3808517,P27,c(Q15617994)), (Q11366222,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3808517
relation P27
action find
entity Q11366222
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Jo Bergsvand or Kisaburō Nakane
{'OR': [['Q3808517', 'P27', {'concept': 'Q15617994'}], ['Q11366222', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?s property:P27 ?r . VALUES ( ?s ) { ( resource:Q3808517 ) ( resource:Q11366222 ) } } . ?r rdf:type ontology:Q15617994 }
Norway Japan
Norway and Japan are the countries of citizenship of Jo Bergsvand or Kisaburō Nakane
Norway Japan
action filter_type
action union
action find
entity Jo Bergsvand
relation country of citizenship
action find
entity Kisaburō Nakane
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jo Bergsvand', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kisaburō Nakane', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?s property:country_of_citizenship ?r . VALUES ( ?s ) { ( resource:Jo_Bergsvand ) ( resource:Kisaburō_Nakane ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1995286
P530
Q1048835
USER
Do Camarasa have diplomatic relations with those administrative territories ?
(Q1995286,P530,Q20) (Q1995286,P530,Q17)
action is_in
entity prev_answer
action find
entity Q1995286
relation P530
['Q1995286', 'P530', 'Q20'] ['Q1995286', 'P530', 'Q17']
ASK WHERE { VALUES ( ?m ) { ( resource:Q20 ) ( resource:Q17 ) } . resource:Q1995286 property:P530 ?m }
Camarasa
action is_in
entity prev_answer
action find
entity Camarasa
relation diplomatic relation
['Camarasa', 'diplomatic relation', 'Norway'] ['Camarasa', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?m ) { ( resource:Norway ) ( resource:Japan ) } . resource:Camarasa property:diplomatic_relation ?m }
[]
political territorial entity
SYSTEM
NO
(Q1995286,P530,Q20) (Q1995286,P530,Q17)
action is_in
entity prev_answer
action find
entity Q1995286
relation P530
[ANSWER]
['Q1995286', 'P530', 'Q20'] ['Q1995286', 'P530', 'Q17']
ASK WHERE { VALUES ( ?m ) { ( resource:Q20 ) ( resource:Q17 ) } . resource:Q1995286 property:P530 ?m }
No
action is_in
entity prev_answer
action find
entity Camarasa
relation diplomatic relation
['Camarasa', 'diplomatic relation', 'Norway'] ['Camarasa', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?m ) { ( resource:Norway ) ( resource:Japan ) } . resource:Camarasa property:diplomatic_relation ?m }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q17 Q21850324 Q884
P530
Q15617994
USER
Does Japan have tactful political relations with Gireyevo and South Korea ?
(Q17,P530,Q21850324) (Q17,P530,Q884)
action is_in
entity Q17
action intersection
action find_reverse
entity Q21850324
relation P530
action find_reverse
entity Q884
relation P530
['Q17', 'P530', 'Q21850324'] ['Q17', 'P530', 'Q884']
ASK WHERE { resource:Q17 property:P530 resource:Q884 . resource:Q17 property:P530 resource:Q21850324 }
Japan Gireyevo South Korea
action is_in
entity Japan
action intersection
action find_reverse
entity Gireyevo
relation diplomatic relation
action find_reverse
entity South Korea
relation diplomatic relation
['Japan', 'diplomatic relation', 'Gireyevo'] ['Japan', 'diplomatic relation', 'South Korea']
ASK WHERE { resource:Japan property:diplomatic_relation resource:South_Korea . resource:Japan property:diplomatic_relation resource:Gireyevo }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q17,P530,Q21850324) (Q17,P530,Q884)
action is_in
entity Q17
action intersection
action find_reverse
entity Q21850324
relation P530
action find_reverse
entity Q884
relation P530
[ANSWER]
['Q17', 'P530', 'Q21850324'] ['Q17', 'P530', 'Q884']
ASK WHERE { resource:Q17 property:P530 resource:Q884 . resource:Q17 property:P530 resource:Q21850324 }
NO and YES respectively
action is_in
entity Japan
action intersection
action find_reverse
entity Gireyevo
relation diplomatic relation
action find_reverse
entity South Korea
relation diplomatic relation
['Japan', 'diplomatic relation', 'Gireyevo'] ['Japan', 'diplomatic relation', 'South Korea']
ASK WHERE { resource:Japan property:diplomatic_relation resource:South_Korea . resource:Japan property:diplomatic_relation resource:Gireyevo }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P1001
Q19983480 Q846882
USER
How many Ministrys of Communications or sourcess of law have jurisdiction over Japan ?
(c(Q19983480),P1001,Q17) (c(Q846882),P1001,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P1001
type Q19983480
action filter_type
action find_reverse
entity Q17
relation P1001
type Q846882
[{'concept': 'Q19983480'}, 'P1001', 'Q17'] [{'concept': 'Q846882'}, 'P1001', 'Q17']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q19983480 ) ( ontology:Q846882 ) } }
Japan
action count
action union
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type Ministry of Communications
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type sources of law
[{'concept': 'Ministry of Communications'}, 'applies to jurisdiction', 'Japan'] [{'concept': 'sources of law'}, 'applies to jurisdiction', 'Japan']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Ministry_of_Communications ) ( ontology:sources_of_law ) } }
[]
Ministry of Communications sources of law
SYSTEM
35
Q11498173 Q10372494 Q15277824 Q17220988 Q2044663 Q11429668 Q11626080 Q11552696 Q16536887 Q6973006 Q11385952 Q11606967 Q11163539 Q11418792 Q11641836 Q11660457 Q11353082 Q905554 Q11631817 Q657594 Q11442025 Q11420808 Q4698915 Q3258264 Q11631063 Q6488969 Q3678382 Q11630301 Q11660402 Q5001968 Q574705 Q4251291 Q11421248 Q11143511 Q4683476
(c(Q19983480),P1001,Q17) (c(Q846882),P1001,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P1001
type Q19983480
action filter_type
action find_reverse
entity Q17
relation P1001
type Q846882
[ANSWER]
[{'concept': 'Q19983480'}, 'P1001', 'Q17'] [{'concept': 'Q846882'}, 'P1001', 'Q17']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Q19983480 ) ( ontology:Q846882 ) } }
Act on the Exercise of the Sovereign Right for Fishery, etc. in the Exclusive Economic Zone Civil Code of Japan Special Secrecy Law Road maintenance special measures law PSE law Anti-Prostitution Act (Japan) Administrative Appeal Act Act on Special Measures for the Promotion and Development of Okinawa Act on Access to Information Held by Administrative Organs National Health Care Act of 1958 Insurance Business Act Natural Habitat Conservation Areas in Japan Diet Act (Japan) Japanese trademark law 貨物利用運送事業法 Telecommunications Business Act (Japan) Act on General Incorporated Associations and General Incorporated Foundations Ministry of Posts and Telecommunications petition law Narcotics and Psychotropics Control Law Cannabis Control Law National Government Organization Act Airport Law Ainu Cultural Promotion Act Measurement Act Large-Scale Earthquake Countermeasure Act Japanese nationality law Awakening Drug Control Law Act on Special Measures Concerning Procurement of Electricity from Renewable Energy Sources by Electricity Utilities Businesses Affecting Public Morals Regulation Law Japanese competition law Child pornography laws in Japan National University Corporation Act Official infectious Administrative Litigation Act
35
action count
action union
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type Ministry of Communications
action filter_type
action find_reverse
entity Japan
relation applies to jurisdiction
type sources of law
[{'concept': 'Ministry of Communications'}, 'applies to jurisdiction', 'Japan'] [{'concept': 'sources of law'}, 'applies to jurisdiction', 'Japan']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ?j . VALUES ( ?j ) { ( ontology:Ministry_of_Communications ) ( ontology:sources_of_law ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q72723 Q17
P47
Q15617994
USER
Which administrative territories share border with Japan or Trecase ?
OR((Q17,P47,c(Q15617994)), (Q72723,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q72723
relation P47
type Q15617994
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q72723', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:P47 ?f . VALUES ( ?y ) { ( resource:Q72723 ) ( resource:Q17 ) } } . ?f rdf:type ontology:Q15617994 }
Trecase Japan
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Trecase
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trecase', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:shares_border_with ?f . VALUES ( ?y ) { ( resource:Trecase ) ( resource:Japan ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423 Q159 Q72293 Q72111 Q148 Q72712 Q884 Q72719 Q71851
SYSTEM
North Korea, Russia, Ottaviano, Ercolano, People's Republic of China, Torre Annunziata, South Korea, Torre del Greco, Boscotrecase
Q423 Q159 Q72293 Q72111 Q148 Q72712 Q884 Q72719 Q71851
OR((Q17,P47,c(Q15617994)), (Q72723,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q72723
relation P47
type Q15617994
[ANSWERS] share border with Japan or Trecase
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q72723', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:P47 ?f . VALUES ( ?y ) { ( resource:Q72723 ) ( resource:Q17 ) } } . ?f rdf:type ontology:Q15617994 }
North Korea Russia Ottaviano Ercolano People's Republic of China Torre Annunziata South Korea Torre del Greco Boscotrecase
North Korea, Russia, Ottaviano, Ercolano, People's Republic of China, Torre Annunziata, South Korea, Torre del Greco and Boscotrecase share border with Japan or Trecase
North Korea Russia Ottaviano Ercolano People's Republic of China Torre Annunziata South Korea Torre del Greco Boscotrecase
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Trecase
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Trecase', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:shares_border_with ?f . VALUES ( ?y ) { ( resource:Trecase ) ( resource:Japan ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q423 Q159 Q72293 Q72111 Q148 Q72712 Q884 Q72719 Q71851
P47
Q15617994
USER
Which administrative territories have an adjacent border with North Korea, Russia, Ottaviano, Ercolano, People's Republic of China, Torre Annunziata, South Korea, Torre del Greco and Boscotrecase ?
(c(Q15617994),P47,Q423) (c(Q15617994),P47,Q159) (c(Q15617994),P47,Q72293) (c(Q15617994),P47,Q72111) (c(Q15617994),P47,Q148) (c(Q15617994),P47,Q72712) (c(Q15617994),P47,Q884) (c(Q15617994),P47,Q72719) (c(Q15617994),P47,Q71851)
action union
action filter_type
action find
entity Q423
relation P47
type Q15617994
action filter_type
action find
entity Q159
relation P47
type Q15617994
action filter_type
action find
entity Q72293
relation P47
type Q15617994
action filter_type
action find
entity Q72111
relation P47
type Q15617994
action filter_type
action find
entity Q148
relation P47
type Q15617994
action filter_type
action find
entity Q72712
relation P47
type Q15617994
action filter_type
action find
entity Q884
relation P47
type Q15617994
action filter_type
action find
entity Q72719
relation P47
type Q15617994
action filter_type
action find
entity Q71851
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q423'] [{'concept': 'Q15617994'}, 'P47', 'Q159'] [{'concept': 'Q15617994'}, 'P47', 'Q72293'] [{'concept': 'Q15617994'}, 'P47', 'Q72111'] [{'concept': 'Q15617994'}, 'P47', 'Q148'] [{'concept': 'Q15617994'}, 'P47', 'Q72712'] [{'concept': 'Q15617994'}, 'P47', 'Q884'] [{'concept': 'Q15617994'}, 'P47', 'Q72719'] [{'concept': 'Q15617994'}, 'P47', 'Q71851']
SELECT DISTINCT ?x WHERE { VALUES ( ?y ) { ( resource:Q423 ) ( resource:Q159 ) } . ?y property:P47 ?x }
North Korea Russia Ottaviano Ercolano People's Republic of China Torre Annunziata South Korea Torre del Greco Boscotrecase
action union
action filter_type
action find
entity North Korea
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ottaviano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ercolano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity People's Republic of China
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Torre Annunziata
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity South Korea
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Torre del Greco
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Boscotrecase
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'North Korea'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Russia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ottaviano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ercolano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "People's Republic of China"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Torre Annunziata'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'South Korea'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Torre del Greco'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Boscotrecase']
SELECT DISTINCT ?x WHERE { VALUES ( ?y ) { ( resource:North_Korea ) ( resource:Russia ) } . ?y property:shares_border_with ?x }
[]
designation for an administrative territorial entity
Q230 Q30 Q159
SYSTEM
Georgia, United States of America, Russia
Q884 Q148 Q159 Q17 Q711 Q230 Q232 Q227 Q212 Q211 Q33 Q30 Q37 Q423 Q148 Q184 Q36 Q191 Q20 Q17 Q71851 Q72111 Q72503 Q72342 Q72666 Q72288 Q72723 Q72719 Q72708 Q72490 Q72585 Q71851 Q72527 Q72666 Q72377 Q72723 Q72719 Q72293 Q72497 Q72414 Q72253 Q863 Q889 Q884 Q881 Q711 Q917 Q232 Q423 Q159 Q668 Q17 Q813 Q819 Q836 Q837 Q843 Q71851 Q71845 Q72723 Q72719 Q36471 Q423 Q148 Q17 Q71851 Q72111 Q72723 Q72712 Q72293 Q72111 Q71845 Q72723 Q72712 Q72719 Q72708 Q72293
(c(Q15617994),P47,Q423) (c(Q15617994),P47,Q159) (c(Q15617994),P47,Q72293) (c(Q15617994),P47,Q72111) (c(Q15617994),P47,Q148) (c(Q15617994),P47,Q72712) (c(Q15617994),P47,Q884) (c(Q15617994),P47,Q72719) (c(Q15617994),P47,Q71851)
action union
action filter_type
action find
entity Q423
relation P47
type Q15617994
action filter_type
action find
entity Q159
relation P47
type Q15617994
action filter_type
action find
entity Q72293
relation P47
type Q15617994
action filter_type
action find
entity Q72111
relation P47
type Q15617994
action filter_type
action find
entity Q148
relation P47
type Q15617994
action filter_type
action find
entity Q72712
relation P47
type Q15617994
action filter_type
action find
entity Q884
relation P47
type Q15617994
action filter_type
action find
entity Q72719
relation P47
type Q15617994
action filter_type
action find
entity Q71851
relation P47
type Q15617994
[ANSWERS] have an adjacent border with North Korea, Russia, Ottaviano, Ercolano, People's Republic of China, Torre Annunziata, South Korea, Torre del Greco and Boscotrecase
[{'concept': 'Q15617994'}, 'P47', 'Q423'] [{'concept': 'Q15617994'}, 'P47', 'Q159'] [{'concept': 'Q15617994'}, 'P47', 'Q72293'] [{'concept': 'Q15617994'}, 'P47', 'Q72111'] [{'concept': 'Q15617994'}, 'P47', 'Q148'] [{'concept': 'Q15617994'}, 'P47', 'Q72712'] [{'concept': 'Q15617994'}, 'P47', 'Q884'] [{'concept': 'Q15617994'}, 'P47', 'Q72719'] [{'concept': 'Q15617994'}, 'P47', 'Q71851']
SELECT DISTINCT ?x WHERE { VALUES ( ?y ) { ( resource:Q423 ) ( resource:Q159 ) } . ?y property:P47 ?x }
South Korea People's Republic of China Russia Japan Mongolia Georgia Kazakhstan Azerbaijan Ukraine Latvia Finland United States of America Lithuania North Korea People's Republic of China Belarus Poland Estonia Norway Japan Boscotrecase Ercolano San Giuseppe Vesuviano Palma Campania Somma Vesuviana Nola Trecase Torre del Greco Terzigno San Gennaro Vesuviano Sant'Anastasia Boscotrecase San Sebastiano al Vesuvio Somma Vesuviana Pollena Trocchia Trecase Torre del Greco Ottaviano San Giorgio a Cremano Portici Massa di Somma Tajikistan Afghanistan South Korea Vietnam Mongolia Bhutan Kazakhstan North Korea Russia India Japan Kyrgyzstan Laos Myanmar Nepal Pakistan Boscotrecase Boscoreale Trecase Torre del Greco Pompei North Korea People's Republic of China Japan Boscotrecase Ercolano Trecase Torre Annunziata Ottaviano Ercolano Boscoreale Trecase Torre Annunziata Torre del Greco Terzigno Ottaviano
Georgia, United States of America and Russia have an adjacent border with North Korea, Russia, Ottaviano, Ercolano, People's Republic of China, Torre Annunziata, South Korea, Torre del Greco and Boscotrecase
Georgia United States of America Russia
action union
action filter_type
action find
entity North Korea
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ottaviano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Ercolano
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity People's Republic of China
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Torre Annunziata
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity South Korea
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Torre del Greco
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Boscotrecase
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'North Korea'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Russia'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ottaviano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Ercolano'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', "People's Republic of China"] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Torre Annunziata'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'South Korea'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Torre del Greco'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Boscotrecase']
SELECT DISTINCT ?x WHERE { VALUES ( ?y ) { ( resource:North_Korea ) ( resource:Russia ) } . ?y property:shares_border_with ?x }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q30 Q159
P163
Q14660
USER
Which flags are associated with Georgia, United States of America and Russia ?
(Q230,P163,c(Q14660)) (Q30,P163,c(Q14660)) (Q159,P163,c(Q14660))
action union
action filter_type
action find
entity Q230
relation P163
type Q14660
action filter_type
action find
entity Q30
relation P163
type Q14660
action filter_type
action find
entity Q159
relation P163
type Q14660
['Q230', 'P163', {'concept': 'Q14660'}] ['Q30', 'P163', {'concept': 'Q14660'}] ['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { ?i property:P163 ?n . VALUES ( ?i ) { ( resource:Q230 ) ( resource:Q30 ) } }
Georgia United States of America Russia
action union
action filter_type
action find
entity Georgia
relation flag
type flag
action filter_type
action find
entity United States of America
relation flag
type flag
action filter_type
action find
entity Russia
relation flag
type flag
['Georgia', 'flag', {'concept': 'flag'}] ['United States of America', 'flag', {'concept': 'flag'}] ['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { ?i property:flag ?n . VALUES ( ?i ) { ( resource:Georgia ) ( resource:United_States_of_America ) } }
[]
flag
Q26491 Q42537 Q16611
SYSTEM
Flag of Georgia, flag of the United States of America, flag of Russia
Q26491 Q42537 Q16611
(Q230,P163,c(Q14660)) (Q30,P163,c(Q14660)) (Q159,P163,c(Q14660))
action union
action filter_type
action find
entity Q230
relation P163
type Q14660
action filter_type
action find
entity Q30
relation P163
type Q14660
action filter_type
action find
entity Q159
relation P163
type Q14660
And [ANSWERS] are associated with Georgia, United States of America and Russia
['Q230', 'P163', {'concept': 'Q14660'}] ['Q30', 'P163', {'concept': 'Q14660'}] ['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { ?i property:P163 ?n . VALUES ( ?i ) { ( resource:Q230 ) ( resource:Q30 ) } }
Flag of Georgia flag of the United States of America flag of Russia
And Flag of Georgia, flag of the United States of America and flag of Russia are associated with Georgia, United States of America and Russia
Flag of Georgia flag of the United States of America flag of Russia
action union
action filter_type
action find
entity Georgia
relation flag
type flag
action filter_type
action find
entity United States of America
relation flag
type flag
action filter_type
action find
entity Russia
relation flag
type flag
['Georgia', 'flag', {'concept': 'flag'}] ['United States of America', 'flag', {'concept': 'flag'}] ['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { ?i property:flag ?n . VALUES ( ?i ) { ( resource:Georgia ) ( resource:United_States_of_America ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16611
P1001
Q15617994
USER
Which administrative territory applies to jurisdiction of that flag ?
(Q16611,P1001,c(Q15617994))
action filter_type
action find
entity Q16611
relation P1001
type Q15617994
['Q16611', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q16611 property:P1001 ?u . ?u rdf:type ontology:Q15617994 }
flag of Russia
action filter_type
action find
entity flag of Russia
relation applies to jurisdiction
type designation for an administrative territorial entity
['flag of Russia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:flag_of_Russia property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q26491
SYSTEM
Did you mean Flag of Georgia ?
Q26491 Q42537 Q16611
(Q26491,P1001,c(Q15617994)) (Q42537,P1001,c(Q15617994)) (Q16611,P1001,c(Q15617994))
[ANSWER]
['Q26491', 'P1001', {'concept': 'Q15617994'}] ['Q42537', 'P1001', {'concept': 'Q15617994'}] ['Q16611', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q16611 property:P1001 ?u . ?u rdf:type ontology:Q15617994 }
Flag of Georgia flag of the United States of America flag of Russia
Did you mean Flag of Georgia ?
Flag of Georgia
['Flag of Georgia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['flag of the United States of America', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['flag of Russia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:flag_of_Russia property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant flag of Russia. Could you tell me the answer for that?
(Q16611,P1001,c(Q15617994))
Q16611
['Q16611', 'P1001', {'concept': 'Q15617994'}]
['flag of Russia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q159
SYSTEM
Russia
Q159
(Q16611,P1001,c(Q15617994))
action filter_type
action find
entity Q16611
relation P1001
type Q15617994
[ANSWER] applies to jurisdiction of that flag
['Q16611', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q16611 property:P1001 ?u . ?u rdf:type ontology:Q15617994 }
Russia
Russia applies to jurisdiction of that flag
Russia
action filter_type
action find
entity flag of Russia
relation applies to jurisdiction
type designation for an administrative territorial entity
['flag of Russia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:flag_of_Russia property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]