Simple Question (Direct)
Simple Question
Q3302463
P641
Q349
USER
What did Yu Eto participate in ?
(Q3302463,P641,c(Q349))
action filter_type
action find
entity Q3302463
relation P641
type Q349
['Q3302463', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q3302463 property:P641 ?f . ?f rdf:type ontology:Q349 }
Yu Eto
action filter_type
action find
entity Yu Eto
relation sport
type sport
['Yu Eto', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Yu_Eto property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3302463,P641,c(Q349))
action filter_type
action find
entity Q3302463
relation P641
type Q349
Yu Eto participated in [ANSWER]
['Q3302463', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q3302463 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
Yu Eto participated in association football
association football
action filter_type
action find
entity Yu Eto
relation sport
type sport
['Yu Eto', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Yu_Eto property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3302463
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Yu Eto ?
(Q3302463,P27,c(Q15617994))
action filter_type
action find
entity Q3302463
relation P27
type Q15617994
['Q3302463', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3302463 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Yu Eto
action filter_type
action find
entity Yu Eto
relation country of citizenship
type designation for an administrative territorial entity
['Yu Eto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Yu_Eto property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q3302463,P27,c(Q15617994))
action filter_type
action find
entity Q3302463
relation P27
type Q15617994
To [ANSWER] is the country of citizenship of Yu Eto
['Q3302463', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q3302463 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Japan
To Japan is the country of citizenship of Yu Eto
Japan
action filter_type
action find
entity Yu Eto
relation country of citizenship
type designation for an administrative territorial entity
['Yu Eto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Yu_Eto property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11511274
Q15617994
USER
And how about Miyoji Hayakawa?
(Q11511274,P27,c(Q15617994))
action filter_type
action find
entity Q11511274
relation P27
type Q15617994
['Q11511274', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q11511274 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Miyoji Hayakawa
action filter_type
action find
entity Miyoji Hayakawa
relation country of citizenship
type designation for an administrative territorial entity
['Miyoji Hayakawa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Miyoji_Hayakawa property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q11511274,P27,c(Q15617994))
action filter_type
action find
entity Q11511274
relation P27
type Q15617994
[ANSWER]
['Q11511274', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q11511274 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Japan
Japan
action filter_type
action find
entity Miyoji Hayakawa
relation country of citizenship
type designation for an administrative territorial entity
['Miyoji Hayakawa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Miyoji_Hayakawa property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q203493 Q17
P163
Q14660
USER
What have Japan or Kingdom of Romania as their flag
OR((Q17,P163,c(Q14660)), (Q203493,P163,c(Q14660)))
action filter_type
action union
action find
entity Q17
relation P163
action find
entity Q203493
relation P163
type Q14660
{'OR': [['Q17', 'P163', {'concept': 'Q14660'}], ['Q203493', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q203493 property:P163 ?e } UNION { resource:Q17 property:P163 ?e } } . ?e rdf:type ontology:Q14660 }
Kingdom of Romania Japan
action filter_type
action union
action find
entity Japan
relation flag
action find
entity Kingdom of Romania
relation flag
type flag
{'OR': [['Japan', 'flag', {'concept': 'flag'}], ['Kingdom of Romania', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Kingdom_of_Romania property:flag ?e } UNION { resource:Japan property:flag ?e } } . ?e rdf:type ontology:flag }
[]
flag
Q43175 Q130811
SYSTEM
Flag of Japan, Flag of Romania
Q43175 Q130811
OR((Q17,P163,c(Q14660)), (Q203493,P163,c(Q14660)))
action filter_type
action union
action find
entity Q17
relation P163
action find
entity Q203493
relation P163
type Q14660
And [ANSWERS] have Japan or Kingdom of Romania as their flag
{'OR': [['Q17', 'P163', {'concept': 'Q14660'}], ['Q203493', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q203493 property:P163 ?e } UNION { resource:Q17 property:P163 ?e } } . ?e rdf:type ontology:Q14660 }
Flag of Japan Flag of Romania
And Flag of Japan and Flag of Romania have Japan or Kingdom of Romania as their flag
Flag of Japan Flag of Romania
action filter_type
action union
action find
entity Japan
relation flag
action find
entity Kingdom of Romania
relation flag
type flag
{'OR': [['Japan', 'flag', {'concept': 'flag'}], ['Kingdom of Romania', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Kingdom_of_Romania property:flag ?e } UNION { resource:Japan property:flag ?e } } . ?e rdf:type ontology:flag }
[]
Clarification
Simple Question|Single Entity|Indirect
Q130811
P462
Q4373292
USER
Which physical property is associated with that flag ?
(Q130811,P462,c(Q4373292))
action filter_type
action find
entity Q130811
relation P462
type Q4373292
['Q130811', 'P462', {'concept': 'Q4373292'}]
SELECT DISTINCT ?z WHERE { resource:Q130811 property:P462 ?z . ?z rdf:type ontology:Q4373292 }
Flag of Romania
action filter_type
action find
entity Flag of Romania
relation color
type physical property
['Flag of Romania', 'color', {'concept': 'physical property'}]
SELECT DISTINCT ?z WHERE { resource:Flag_of_Romania property:color ?z . ?z rdf:type ontology:physical_property }
[]
physical property
Clarification for simple ques.
Q43175
SYSTEM
Did you mean Flag of Japan ?
Q43175 Q130811
(Q43175,P462,c(Q4373292)) (Q130811,P462,c(Q4373292))
[ANSWER]
['Q43175', 'P462', {'concept': 'Q4373292'}] ['Q130811', 'P462', {'concept': 'Q4373292'}]
SELECT DISTINCT ?z WHERE { resource:Q130811 property:P462 ?z . ?z rdf:type ontology:Q4373292 }
Flag of Japan Flag of Romania
Did you mean Flag of Japan ?
Flag of Japan
['Flag of Japan', 'color', {'concept': 'physical property'}] ['Flag of Romania', 'color', {'concept': 'physical property'}]
SELECT DISTINCT ?z WHERE { resource:Flag_of_Romania property:color ?z . ?z rdf:type ontology:physical_property }
[]
Simple Question (Coreferenced)
USER
No, I meant Flag of Romania. Could you tell me the answer for that?
(Q130811,P462,c(Q4373292))
Q130811
['Q130811', 'P462', {'concept': 'Q4373292'}]
['Flag of Romania', 'color', {'concept': 'physical property'}]
[]
Q737438
SYSTEM
orange-red
Q737438
(Q130811,P462,c(Q4373292))
action filter_type
action find
entity Q130811
relation P462
type Q4373292
[ANSWER] is associated with that flag
['Q130811', 'P462', {'concept': 'Q4373292'}]
SELECT DISTINCT ?z WHERE { resource:Q130811 property:P462 ?z . ?z rdf:type ontology:Q4373292 }
orange-red
Orange-red is associated with that flag
orange-red
action filter_type
action find
entity Flag of Romania
relation color
type physical property
['Flag of Romania', 'color', {'concept': 'physical property'}]
SELECT DISTINCT ?z WHERE { resource:Flag_of_Romania property:color ?z . ?z rdf:type ontology:physical_property }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q737438
P462
Q14660
USER
Which flags have that physical property as their color ?
(c(Q14660),P462,Q737438)
action filter_type
action find_reverse
entity Q737438
relation P462
type Q14660
[{'concept': 'Q14660'}, 'P462', 'Q737438']
SELECT DISTINCT ?v WHERE { ?v property:P462 resource:Q737438 . ?v rdf:type ontology:Q14660 }
orange-red
action filter_type
action find_reverse
entity orange-red
relation color
type flag
[{'concept': 'flag'}, 'color', 'orange-red']
SELECT DISTINCT ?v WHERE { ?v property:color resource:orange-red . ?v rdf:type ontology:flag }
[]
flag
Q130811 Q46585
SYSTEM
Flag of Romania, flag of the Netherlands
Q130811 Q46585
(c(Q14660),P462,Q737438)
action filter_type
action find_reverse
entity Q737438
relation P462
type Q14660
[ANSWERS] have that physical property as their color
[{'concept': 'Q14660'}, 'P462', 'Q737438']
SELECT DISTINCT ?v WHERE { ?v property:P462 resource:Q737438 . ?v rdf:type ontology:Q14660 }
Flag of Romania flag of the Netherlands
Flag of Romania and flag of the Netherlands have that physical property as their color
Flag of Romania flag of the Netherlands
action filter_type
action find_reverse
entity orange-red
relation color
type flag
[{'concept': 'flag'}, 'color', 'orange-red']
SELECT DISTINCT ?v WHERE { ?v property:color resource:orange-red . ?v rdf:type ontology:flag }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q2221906 Q39546 Q14660
USER
Which flags depict atmost 1 geographic locations and tools ?
(c(Q14660),P180,c(Q2221906)|c(Q39546))
action atmost
action union
action find_tuple_counts
relation P180
type Q14660
type Q2221906
action find_tuple_counts
relation P180
type Q14660
type Q39546
value 1
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?p WHERE { { ?p rdf:type ontology:Q14660 . ?o rdf:type ontology:Q2221906 . ?p property:P180 ?o } UNION { ?p property:P180 ?o . ?o rdf:type ontology:Q39546 . ?p rdf:type ontology:Q14660 } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
action atmost
action union
action find_tuple_counts
relation depicts
type flag
type geographic location
action find_tuple_counts
relation depicts
type flag
type tool
value 1
[{'concept': 'flag'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'tool'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?p WHERE { { ?p rdf:type ontology:flag . ?o rdf:type ontology:geographic_location . ?p property:depicts ?o } UNION { ?p property:depicts ?o . ?o rdf:type ontology:tool . ?p rdf:type ontology:flag } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
[]
geographic location tool flag
Q82194 Q81676 Q185271
SYSTEM
flag of Brazil, flag of Australia, Flag of Papua New Guinea
Q270377 Q159872 Q83392 Q1165949 Q235829 Q168935 Q128480 Q42537 Q1426561 Q185285 Q1091279 Q1074327 Q135034 Q134521 Q266618 Q484249 Q127179 Q601976 Q252995 Q207518 Q599323 Q330517 Q156564 Q163832 Q160260 Q169192 Q124020 Q693558 Q60149 Q162999 Q48409 Q103037 Q36005 Q130458 Q336328 Q105643 Q392167 Q24577771 Q81952 Q104351 Q124329 Q43175 Q127296 Q912854 Q162789 Q79874 Q512175 Q328895 Q130774 Q82194 Q188477 Q41673 Q134874 Q1426630 Q2062018 Q34599 Q19427 Q673117 Q82236 Q81526 Q167119 Q128347 Q4633 Q83278 Q188609 Q19373 Q1418784 Q162033 Q1122078 Q102977 Q520966 Q131147 Q202189 Q185271 Q284396 Q604735 Q301628 Q637134 Q79198 Q170814 Q429900 Q165641 Q80110 Q47214 Q632491 Q165230 Q1064042 Q81676 Q182514 Q1426379
(c(Q14660),P180,c(Q2221906)|c(Q39546))
action atmost
action union
action find_tuple_counts
relation P180
type Q14660
type Q2221906
action find_tuple_counts
relation P180
type Q14660
type Q39546
value 1
[ANSWERS] depict atmost 1 geographic locations and tools
[{'concept': 'Q14660'}, 'P180', [{'concept': 'Q2221906'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?p WHERE { { ?p rdf:type ontology:Q14660 . ?o rdf:type ontology:Q2221906 . ?p property:P180 ?o } UNION { ?p property:P180 ?o . ?o rdf:type ontology:Q39546 . ?p rdf:type ontology:Q14660 } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
Flag of Tokelau Flag of Cameroon Flag of Algeria Flag of Ontario flag of Guam Flag of Malaysia flag of Israel flag of the United States of America Flag of the Northwest Territories Flag of Vanuatu flag of Western Australia flag of Tasmania Flag of Antigua and Barbuda Flag of Bhutan Flag of Prince Edward Island Flag of Mozambique flag of Bangladesh Flag of Nova Scotia flag of the Australian Capital Territory flag of Northern Cyprus flag of the Northern Territory Flag of California flag of Alaska Flag of Serbia flag of New Zealand flag of Belize flag of Switzerland flag of Saskatchewan Flag of Denmark Flag of Cambodia flag of Albania Flag of Uganda flag of Lebanon flag of Egypt Flag of Christmas Island Flag of Tuvalu flag of Quebec flag of the People's Republic of Benin flag of Turkey Flag of Barbados Flag of Angola Flag of Japan Flag of South Korea flag of South Australia Flag of Tunisia flag of Afghanistan Flag of Manitoba Flag of the Cocos (Keeling) Islands flag of Argentina flag of Brazil flag of Samoa flag of India Flag of Bolivia Flag of Nunavut flag of Yukon Flag of Libya flag of Oregon Flag of Indiana Flag of Azerbaijan flag of Andorra Flag of the Republic of Macedonia Flag of Pakistan Flag of Cyprus flag of the United Kingdom Flag of Palau Flag of South Carolina Flag of New Brunswick flag of Bosnia and Herzegovina Flag of Alberta Flag of Mauritania Flag of Rhode Island Flag of the People's Republic of China Flag of Niue Flag of Papua New Guinea Flag of Kansas Flag of Sint Maarten Flag of Mississippi flag of British Columbia Flag of Vatican City Flag of Zambia Flag of Saba flag of Kyrgyzstan flag of Canada flag of the Russian Soviet Federative Socialist Republic Flag of Arizona flag of the Soviet Union flag of New South Wales flag of Australia Flag of Fiji Flag of Amsterdam
Flag of Brazil, flag of Australia and Flag of Papua New Guinea depict atmost 1 geographic locations and tools
flag of Brazil flag of Australia Flag of Papua New Guinea
action atmost
action union
action find_tuple_counts
relation depicts
type flag
type geographic location
action find_tuple_counts
relation depicts
type flag
type tool
value 1
[{'concept': 'flag'}, 'depicts', [{'concept': 'geographic location'}, {'concept': 'tool'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?p WHERE { { ?p rdf:type ontology:flag . ?o rdf:type ontology:geographic_location . ?p property:depicts ?o } UNION { ?p property:depicts ?o . ?o rdf:type ontology:tool . ?p rdf:type ontology:flag } } GROUP BY ?p } . FILTER ( ?e <= 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q82194 Q81676 Q185271
P462
Q1075
USER
Which colors are those flags associated with ?
(Q82194,P462,c(Q1075)) (Q81676,P462,c(Q1075)) (Q185271,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
['Q82194', 'P462', {'concept': 'Q1075'}] ['Q81676', 'P462', {'concept': 'Q1075'}] ['Q185271', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1075 . VALUES ( ?e ) { ( resource:Q270377 ) ( resource:Q159872 ) ( resource:Q83392 ) } . ?e property:P462 ?n }
flag of Brazil flag of Australia Flag of Papua New Guinea
action filter_type
action find
entity prev_answer
relation color
type color
['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Australia', 'color', {'concept': 'color'}] ['Flag of Papua New Guinea', 'color', {'concept': 'color'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:color . VALUES ( ?e ) { ( resource:Flag_of_Tokelau ) ( resource:Flag_of_Cameroon ) ( resource:Flag_of_Algeria ) } . ?e property:color ?n }
[]
color
Q943 Q1088 Q3133
SYSTEM
yellow, blue, green
Q943 Q1088 Q3133 Q3142 Q1088 Q3142 Q23445
(Q82194,P462,c(Q1075)) (Q81676,P462,c(Q1075)) (Q185271,P462,c(Q1075))
action filter_type
action find
entity prev_answer
relation P462
type Q1075
Those flags are associated with [ANSWERS]
['Q82194', 'P462', {'concept': 'Q1075'}] ['Q81676', 'P462', {'concept': 'Q1075'}] ['Q185271', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1075 . VALUES ( ?e ) { ( resource:Q270377 ) ( resource:Q159872 ) ( resource:Q83392 ) } . ?e property:P462 ?n }
yellow blue green red blue red black
Those flags are associated with yellow, blue and green
yellow blue green
action filter_type
action find
entity prev_answer
relation color
type color
['flag of Brazil', 'color', {'concept': 'color'}] ['flag of Australia', 'color', {'concept': 'color'}] ['Flag of Papua New Guinea', 'color', {'concept': 'color'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:color . VALUES ( ?e ) { ( resource:Flag_of_Tokelau ) ( resource:Flag_of_Cameroon ) ( resource:Flag_of_Algeria ) } . ?e property:color ?n }
[]
Clarification
Simple Question|Single Entity|Indirect
Q82194
P1001
Q15617994
USER
Which administrative territory comes under the supervision of that flag ?
(Q82194,P1001,c(Q15617994))
action filter_type
action find
entity Q82194
relation P1001
type Q15617994
['Q82194', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q82194 property:P1001 ?l . ?l rdf:type ontology:Q15617994 }
flag of Brazil
action filter_type
action find
entity flag of Brazil
relation applies to jurisdiction
type designation for an administrative territorial entity
['flag of Brazil', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:flag_of_Brazil property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q82194
SYSTEM
Did you mean flag of Brazil ?
Q943 Q1088 Q3133
(Q943,P1001,c(Q15617994)) (Q1088,P1001,c(Q15617994)) (Q3133,P1001,c(Q15617994))
[ANSWER]
['Q943', 'P1001', {'concept': 'Q15617994'}] ['Q1088', 'P1001', {'concept': 'Q15617994'}] ['Q3133', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q82194 property:P1001 ?l . ?l rdf:type ontology:Q15617994 }
yellow blue green
Did you mean flag of Brazil ?
flag of Brazil
['yellow', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['blue', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['green', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:flag_of_Brazil property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q82194,P1001,c(Q15617994))
['Q82194', 'P1001', {'concept': 'Q15617994'}]
['flag of Brazil', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q155
SYSTEM
Brazil
Q155
(Q82194,P1001,c(Q15617994))
action filter_type
action find
entity Q82194
relation P1001
type Q15617994
[ANSWER] comes under the supervision of that flag
['Q82194', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q82194 property:P1001 ?l . ?l rdf:type ontology:Q15617994 }
Brazil
Brazil comes under the supervision of that flag
Brazil
action filter_type
action find
entity flag of Brazil
relation applies to jurisdiction
type designation for an administrative territorial entity
['flag of Brazil', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:flag_of_Brazil property:applies_to_jurisdiction ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]