Simple Question (Direct)
Simple Question
Q7312289
P641
Q349
USER
Which sport did Ren-Ren Ritualo participate in ?
(Q7312289,P641,c(Q349))
action filter_type
action find
entity Q7312289
relation P641
type Q349
['Q7312289', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q7312289 property:P641 ?h . ?h rdf:type ontology:Q349 }
Ren-Ren Ritualo
action filter_type
action find
entity Ren-Ren Ritualo
relation sport
type sport
['Ren-Ren Ritualo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ren-Ren_Ritualo property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q7312289,P641,c(Q349))
action filter_type
action find
entity Q7312289
relation P641
type Q349
Ren- Ren Ritualo participated in [ANSWER]
['Q7312289', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q7312289 property:P641 ?h . ?h rdf:type ontology:Q349 }
basketball
Ren- Ren Ritualo participated in basketball
basketball
action filter_type
action find
entity Ren-Ren Ritualo
relation sport
type sport
['Ren-Ren Ritualo', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ren-Ren_Ritualo property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7312289
P19
Q515
USER
Which city was Ren-Ren Ritualo born at ?
(Q7312289,P19,c(Q515))
action filter_type
action find
entity Q7312289
relation P19
type Q515
['Q7312289', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q7312289 property:P19 ?e . ?e rdf:type ontology:Q515 }
Ren-Ren Ritualo
action filter_type
action find
entity Ren-Ren Ritualo
relation place of birth
type city
['Ren-Ren Ritualo', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Ren-Ren_Ritualo property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
city
Q1461
SYSTEM
Manila
Q1461
(Q7312289,P19,c(Q515))
action filter_type
action find
entity Q7312289
relation P19
type Q515
Ren- Ren Ritualo was born in [ANSWER]
['Q7312289', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { resource:Q7312289 property:P19 ?e . ?e rdf:type ontology:Q515 }
Manila
Ren- Ren Ritualo was born in Manila
Manila
action filter_type
action find
entity Ren-Ren Ritualo
relation place of birth
type city
['Ren-Ren Ritualo', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { resource:Ren-Ren_Ritualo property:place_of_birth ?e . ?e rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2226165
Q515
USER
And how about Satoru Matsuhashi?
(Q2226165,P19,c(Q515))
action filter_type
action find
entity Q2226165
relation P19
type Q515
['Q2226165', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q2226165 property:P19 ?e }
Satoru Matsuhashi
action filter_type
action find
entity Satoru Matsuhashi
relation place of birth
type city
['Satoru Matsuhashi', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Satoru_Matsuhashi property:place_of_birth ?e }
[]
city
Q496499
SYSTEM
Kazuno
Q496499
(Q2226165,P19,c(Q515))
action filter_type
action find
entity Q2226165
relation P19
type Q515
[ANSWER]
['Q2226165', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q515 . resource:Q2226165 property:P19 ?e }
Kazuno
Kazuno
action filter_type
action find
entity Satoru Matsuhashi
relation place of birth
type city
['Satoru Matsuhashi', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:city . resource:Satoru_Matsuhashi property:place_of_birth ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16552 Q1461
P190
Q56061
USER
Which administrative territories are twin town of Manila or San Diego ?
OR((c(Q56061),P190,Q1461), (c(Q56061),P190,Q16552))
action filter_type
action union
action find_reverse
entity Q1461
relation P190
action find_reverse
entity Q16552
relation P190
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P190', 'Q1461'], [{'concept': 'Q56061'}, 'P190', 'Q16552']]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?g ) { ( resource:Q16552 ) ( resource:Q1461 ) } . ?w property:P190 ?g } . ?w rdf:type ontology:Q56061 }
San Diego Manila
action filter_type
action union
action find_reverse
entity Manila
relation sister city
action find_reverse
entity San Diego
relation sister city
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'sister city', 'Manila'], [{'concept': 'administrative territorial entity'}, 'sister city', 'San Diego']]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?g ) { ( resource:San_Diego ) ( resource:Manila ) } . ?w property:sister_city ?g } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q51103 Q62 Q726143 Q8851 Q26339 Q987 Q171617 Q959 Q340 Q81398
SYSTEM
Some of them are Cali, San Francisco, Tema, Málaga, Jersey City, New Delhi, Campinas, Vladivostok, Montreal, Acapulco
Q649 Q1861 Q3130 Q1867 Q340 Q183303 Q23436 Q81398 Q16635 Q189128 Q956 Q1520 Q1489 Q1563 Q33959 Q987 Q41621 Q3630 Q2868 Q8851 Q26339 Q51103 Q42140 Q124739 Q270 Q2807 Q171617 Q46940 Q959 Q62 Q726143
OR((c(Q56061),P190,Q1461), (c(Q56061),P190,Q16552))
action filter_type
action union
action find_reverse
entity Q1461
relation P190
action find_reverse
entity Q16552
relation P190
type Q56061
[ANSWERS] are twin town of Manila or San Diego
{'OR': [[{'concept': 'Q56061'}, 'P190', 'Q1461'], [{'concept': 'Q56061'}, 'P190', 'Q16552']]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?g ) { ( resource:Q16552 ) ( resource:Q1461 ) } . ?w property:P190 ?g } . ?w rdf:type ontology:Q56061 }
Moscow Bangkok Sydney Taipei Montreal Jalalabad Edinburgh Acapulco Guam León Beijing Astana Mexico City Havana Nice New Delhi Haifa Jakarta Lima Málaga Jersey City Cali Jeonju Tijuana Warsaw Madrid Campinas Alcalá de Henares Vladivostok San Francisco Tema
Cali, San Francisco, Tema, Málaga, Jersey City, New Delhi, Campinas, Vladivostok, Montreal and Acapulco are twin town of Manila or San Diego
Cali San Francisco Tema Málaga Jersey City New Delhi Campinas Vladivostok Montreal Acapulco
action filter_type
action union
action find_reverse
entity Manila
relation sister city
action find_reverse
entity San Diego
relation sister city
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'sister city', 'Manila'], [{'concept': 'administrative territorial entity'}, 'sister city', 'San Diego']]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?g ) { ( resource:San_Diego ) ( resource:Manila ) } . ?w property:sister_city ?g } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q726143
P19 P21
Q502895
USER
Which people have location of birth at Tema and have male as the sex ?
AND((c(Q502895),P19,Q726143), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q726143
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q726143'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P19 resource:Q726143 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
male Tema
action filter_type
action intersection
action find_reverse
entity Tema
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Tema'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:place_of_birth resource:Tema . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]
common name
Q313725 Q21944837 Q316388 Q1080076 Q5304519 Q16580135 Q26208597 Q26251717 Q1334610 Q7424232
SYSTEM
Some of them are Matthew Amoah, Billy Ouattara, Hans Sarpei, Christian Gyan, Dr Cryme, Moses Odjer, Eric Ocansey, Cj Biggerman, Emanuel Bentil, Sarkodie
Q310369 Q1343594 Q7424232 Q16148659 Q734723 Q16580135 Q26251717 Q392431 Q4893074 Q6204499 Q5385993 Q21944837 Q27049895 Q7446644 Q16231478 Q2620543 Q316388 Q15306473 Q1080076 Q21066461 Q313725 Q2055861 Q26208597 Q5304519 Q1383087 Q3090485 Q3784515 Q1334610
AND((c(Q502895),P19,Q726143), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q726143
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have location of birth at Tema and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q726143'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P19 resource:Q726143 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
Freddy Adu Nii Lamptey Sarkodie Theophilus Annorbaah Illiasu Shilla Moses Odjer Cj Biggerman Kwame Quansah Bernard Dong Bortey Joachim Adukor Eric Adjei Billy Ouattara Zuberu Salifu Seidu Bancey Francis Obeng Abubakari Yakubu Hans Sarpei Edward Kpodo Christian Gyan Nii Okai Matthew Amoah William Kwabena Tiero Eric Ocansey Dr Cryme Richard Annang Kweku Adoboli Shamo Quaye Emanuel Bentil
Matthew Amoah, Billy Ouattara, Hans Sarpei, Christian Gyan, Dr Cryme, Moses Odjer, Eric Ocansey, Cj Biggerman, Emanuel Bentil and Sarkodie have location of birth at Tema and have male as the sex
Matthew Amoah Billy Ouattara Hans Sarpei Christian Gyan Dr Cryme Moses Odjer Eric Ocansey Cj Biggerman Emanuel Bentil Sarkodie
action filter_type
action intersection
action find_reverse
entity Tema
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Tema'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:place_of_birth resource:Tema . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q56061 Q486972 Q515
USER
Which cities are sister town of max number of administrative territories and human settlements ?
(c(Q515),P190,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q486972
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?f ) WHERE { { ?q property:P190 ?w . ?w rdf:type ontology:Q56061 . ?q rdf:type ontology:Q515 } UNION { ?q property:P190 ?w . ?q rdf:type ontology:Q515 . ?w rdf:type ontology:Q486972 } } GROUP BY ?q } } . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } GROUP BY ?k } . FILTER ( ?y = ?a ) }
action argmax
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?f ) WHERE { { ?q property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:city } UNION { ?q property:sister_city ?w . ?q rdf:type ontology:city . ?w rdf:type ontology:human_settlement } } GROUP BY ?q } } . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?k } . FILTER ( ?y = ?a ) }
[]
administrative territorial entity human settlement city
Q1486
SYSTEM
Buenos Aires
Q1486
(c(Q515),P190,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P190
type Q515
type Q56061
action find_tuple_counts
relation P190
type Q515
type Q486972
[ANSWER] is sister town of max number of administrative territories and human settlements
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?f ) WHERE { { ?q property:P190 ?w . ?w rdf:type ontology:Q56061 . ?q rdf:type ontology:Q515 } UNION { ?q property:P190 ?w . ?q rdf:type ontology:Q515 . ?w rdf:type ontology:Q486972 } } GROUP BY ?q } } . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } } GROUP BY ?k } . FILTER ( ?y = ?a ) }
Buenos Aires
Buenos Aires is sister town of max number of administrative territories and human settlements
Buenos Aires
action argmax
action union
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_tuple_counts
relation sister city
type city
type human settlement
[{'concept': 'city'}, 'sister city', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?f ) WHERE { { ?q property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:city } UNION { ?q property:sister_city ?w . ?q rdf:type ontology:city . ?w rdf:type ontology:human_settlement } } GROUP BY ?q } } . { SELECT DISTINCT ?k ( COUNT ( ?v ) AS ?y ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } } GROUP BY ?k } . FILTER ( ?y = ?a ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1486 Q5924893
P19
Q502895
USER
Was Jaime Arturo Vázquez Aguilar born at that city ?
(Q5924893,P19,Q1486)
action is_in
entity Q5924893
action find
entity Q1486
relation P19
['Q5924893', 'P19', 'Q1486']
ASK WHERE { resource:Q1486 property:P19 resource:Q5924893 }
Buenos Aires Jaime Arturo Vázquez Aguilar
action is_in
entity Jaime Arturo Vázquez Aguilar
action find
entity Buenos Aires
relation place of birth
['Jaime Arturo Vázquez Aguilar', 'place of birth', 'Buenos Aires']
ASK WHERE { resource:Buenos_Aires property:place_of_birth resource:Jaime_Arturo_Vázquez_Aguilar }
[]
common name
SYSTEM
NO
(Q5924893,P19,Q1486)
action is_in
entity Q5924893
action find
entity Q1486
relation P19
[ANSWER]
['Q5924893', 'P19', 'Q1486']
ASK WHERE { resource:Q1486 property:P19 resource:Q5924893 }
No
action is_in
entity Jaime Arturo Vázquez Aguilar
action find
entity Buenos Aires
relation place of birth
['Jaime Arturo Vázquez Aguilar', 'place of birth', 'Buenos Aires']
ASK WHERE { resource:Buenos_Aires property:place_of_birth resource:Jaime_Arturo_Vázquez_Aguilar }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q182072 Q313725
P1344
Q15275719
USER
Which recurring events did Matthew Amoah or Czechoslovakia national football team compete in ?
OR((Q313725,P1344,c(Q15275719)), (Q182072,P1344,c(Q15275719)))
action filter_type
action union
action find
entity Q313725
relation P1344
action find
entity Q182072
relation P1344
type Q15275719
{'OR': [['Q313725', 'P1344', {'concept': 'Q15275719'}], ['Q182072', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15275719 . { { resource:Q313725 property:P1344 ?y } UNION { resource:Q182072 property:P1344 ?y } } }
Czechoslovakia national football team Matthew Amoah
action filter_type
action union
action find
entity Matthew Amoah
relation participant of
action find
entity Czechoslovakia national football team
relation participant of
type recurring event
{'OR': [['Matthew Amoah', 'participant of', {'concept': 'recurring event'}], ['Czechoslovakia national football team', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:recurring_event . { { resource:Matthew_Amoah property:participant_of ?y } UNION { resource:Czechoslovakia_national_football_team property:participant_of ?y } } }
[]
recurring event
Q176883 Q37285 Q132533 Q1477177 Q132529 Q131075 Q131591 Q46934 Q132664 Q160813
SYSTEM
2010 FIFA World Cup, 2006 FIFA World Cup, 1958 FIFA World Cup, 1934 FIFA World Cup, 1990 FIFA World Cup, 1954 FIFA World Cup, 1938 FIFA World Cup, 1982 FIFA World Cup, 1970 FIFA World Cup, 1962 FIFA World Cup
Q176883 Q37285 Q132533 Q1477177 Q132529 Q131075 Q131591 Q46934 Q132664 Q160813
OR((Q313725,P1344,c(Q15275719)), (Q182072,P1344,c(Q15275719)))
action filter_type
action union
action find
entity Q313725
relation P1344
action find
entity Q182072
relation P1344
type Q15275719
Matthew Amoah or Czechoslovakia national football team competed in [ANSWERS]
{'OR': [['Q313725', 'P1344', {'concept': 'Q15275719'}], ['Q182072', 'P1344', {'concept': 'Q15275719'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15275719 . { { resource:Q313725 property:P1344 ?y } UNION { resource:Q182072 property:P1344 ?y } } }
2010 FIFA World Cup 2006 FIFA World Cup 1958 FIFA World Cup 1934 FIFA World Cup 1990 FIFA World Cup 1954 FIFA World Cup 1938 FIFA World Cup 1982 FIFA World Cup 1970 FIFA World Cup 1962 FIFA World Cup
Matthew Amoah or Czechoslovakia national football team competed in 2010 FIFA World Cup, 2006 FIFA World Cup, 1958 FIFA World Cup, 1934 FIFA World Cup, 1990 FIFA World Cup, 1954 FIFA World Cup, 1938 FIFA World Cup, 1982 FIFA World Cup, 1970 FIFA World Cup and 1962 FIFA World Cup
2010 FIFA World Cup 2006 FIFA World Cup 1958 FIFA World Cup 1934 FIFA World Cup 1990 FIFA World Cup 1954 FIFA World Cup 1938 FIFA World Cup 1982 FIFA World Cup 1970 FIFA World Cup 1962 FIFA World Cup
action filter_type
action union
action find
entity Matthew Amoah
relation participant of
action find
entity Czechoslovakia national football team
relation participant of
type recurring event
{'OR': [['Matthew Amoah', 'participant of', {'concept': 'recurring event'}], ['Czechoslovakia national football team', 'participant of', {'concept': 'recurring event'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:recurring_event . { { resource:Matthew_Amoah property:participant_of ?y } UNION { resource:Czechoslovakia_national_football_team property:participant_of ?y } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q160813
P17
Q15617994
USER
Which administrative territory does that recurring event belong to ?
(Q160813,P17,c(Q15617994))
action filter_type
action find
entity Q160813
relation P17
type Q15617994
['Q160813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q160813 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
1962 FIFA World Cup
action filter_type
action find
entity 1962 FIFA World Cup
relation country
type designation for an administrative territorial entity
['1962 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:1962_FIFA_World_Cup property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q131591
SYSTEM
Did you mean 1938 FIFA World Cup ?
Q176883 Q37285 Q132533 Q1477177 Q132529 Q131075 Q131591 Q46934 Q132664 Q160813
(Q176883,P17,c(Q15617994)) (Q37285,P17,c(Q15617994)) (Q132533,P17,c(Q15617994)) (Q1477177,P17,c(Q15617994)) (Q132529,P17,c(Q15617994)) (Q131075,P17,c(Q15617994)) (Q131591,P17,c(Q15617994)) (Q46934,P17,c(Q15617994)) (Q132664,P17,c(Q15617994)) (Q160813,P17,c(Q15617994))
[ANSWER]
['Q176883', 'P17', {'concept': 'Q15617994'}] ['Q37285', 'P17', {'concept': 'Q15617994'}] ['Q132533', 'P17', {'concept': 'Q15617994'}] ['Q1477177', 'P17', {'concept': 'Q15617994'}] ['Q132529', 'P17', {'concept': 'Q15617994'}] ['Q131075', 'P17', {'concept': 'Q15617994'}] ['Q131591', 'P17', {'concept': 'Q15617994'}] ['Q46934', 'P17', {'concept': 'Q15617994'}] ['Q132664', 'P17', {'concept': 'Q15617994'}] ['Q160813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q160813 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
2010 FIFA World Cup 2006 FIFA World Cup 1958 FIFA World Cup 1934 FIFA World Cup 1990 FIFA World Cup 1954 FIFA World Cup 1938 FIFA World Cup 1982 FIFA World Cup 1970 FIFA World Cup 1962 FIFA World Cup
Did you mean 1938 FIFA World Cup ?
1938 FIFA World Cup
['2010 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['2006 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1958 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1934 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1990 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1954 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1938 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1982 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1970 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}] ['1962 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:1962_FIFA_World_Cup property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant 1962 FIFA World Cup. Could you tell me the answer for that?
(Q160813,P17,c(Q15617994))
Q160813
['Q160813', 'P17', {'concept': 'Q15617994'}]
['1962 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q298
SYSTEM
Chile
Q298
(Q160813,P17,c(Q15617994))
action filter_type
action find
entity Q160813
relation P17
type Q15617994
That recurring event belongs to [ANSWER]
['Q160813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q160813 property:P17 ?h . ?h rdf:type ontology:Q15617994 }
Chile
That recurring event belongs to Chile
Chile
action filter_type
action find
entity 1962 FIFA World Cup
relation country
type designation for an administrative territorial entity
['1962 FIFA World Cup', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:1962_FIFA_World_Cup property:country ?h . ?h 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
Q298 Q114127 Q408
P530
Q1048835
USER
Does that administrative territory have tactful political relations with district of Wernigerode and Australia ?
(Q298,P530,Q114127) (Q298,P530,Q408)
action is_in
entity Q298
action intersection
action find_reverse
entity Q114127
relation P530
action find_reverse
entity Q408
relation P530
['Q298', 'P530', 'Q114127'] ['Q298', 'P530', 'Q408']
ASK WHERE { resource:Q298 property:P530 resource:Q114127 . resource:Q298 property:P530 resource:Q408 }
Chile district of Wernigerode Australia
action is_in
entity Chile
action intersection
action find_reverse
entity district of Wernigerode
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Chile', 'diplomatic relation', 'district of Wernigerode'] ['Chile', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Chile property:diplomatic_relation resource:district_of_Wernigerode . resource:Chile property:diplomatic_relation resource:Australia }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q298,P530,Q114127) (Q298,P530,Q408)
action is_in
entity Q298
action intersection
action find_reverse
entity Q114127
relation P530
action find_reverse
entity Q408
relation P530
[ANSWER]
['Q298', 'P530', 'Q114127'] ['Q298', 'P530', 'Q408']
ASK WHERE { resource:Q298 property:P530 resource:Q114127 . resource:Q298 property:P530 resource:Q408 }
NO and YES respectively
action is_in
entity Chile
action intersection
action find_reverse
entity district of Wernigerode
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Chile', 'diplomatic relation', 'district of Wernigerode'] ['Chile', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Chile property:diplomatic_relation resource:district_of_Wernigerode . resource:Chile property:diplomatic_relation resource:Australia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15434624 Q298
P937 P36
Q515
USER
Which cities are known as the capital of Chile or are the work locations of Reinhard Grunwald ?
OR((Q298,P36,c(Q515)), (Q15434624,P937,c(Q515)))
action filter_type
action union
action find
entity Q298
relation P36
action find
entity Q15434624
relation P937
type Q515
{'OR': [['Q298', 'P36', {'concept': 'Q515'}], ['Q15434624', 'P937', {'concept': 'Q515'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15434624 property:P937 ?q } UNION { resource:Q298 property:P36 ?q } } . ?q rdf:type ontology:Q515 }
Reinhard Grunwald Chile
action filter_type
action union
action find
entity Chile
relation capital
action find
entity Reinhard Grunwald
relation work location
type city
{'OR': [['Chile', 'capital', {'concept': 'city'}], ['Reinhard Grunwald', 'work location', {'concept': 'city'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Reinhard_Grunwald property:work_location ?q } UNION { resource:Chile property:capital ?q } } . ?q rdf:type ontology:city }
[]
city
Q2887 Q6829
SYSTEM
Santiago, Speyer
Q2887 Q6829
OR((Q298,P36,c(Q515)), (Q15434624,P937,c(Q515)))
action filter_type
action union
action find
entity Q298
relation P36
action find
entity Q15434624
relation P937
type Q515
[ANSWERS] are known as the capital of Chile or are the work locations of Reinhard Grunwald
{'OR': [['Q298', 'P36', {'concept': 'Q515'}], ['Q15434624', 'P937', {'concept': 'Q515'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q15434624 property:P937 ?q } UNION { resource:Q298 property:P36 ?q } } . ?q rdf:type ontology:Q515 }
Santiago Speyer
Santiago and Speyer are known as the capital of Chile or are the work locations of Reinhard Grunwald
Santiago Speyer
action filter_type
action union
action find
entity Chile
relation capital
action find
entity Reinhard Grunwald
relation work location
type city
{'OR': [['Chile', 'capital', {'concept': 'city'}], ['Reinhard Grunwald', 'work location', {'concept': 'city'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Reinhard_Grunwald property:work_location ?q } UNION { resource:Chile property:capital ?q } } . ?q rdf:type ontology:city }
[]