Simple Question (Direct)
Simple Question
Q5675756
P40
Q502895
USER
Which person is a successor of Haruko Wakita ?
(Q5675756,P40,c(Q502895))
action filter_type
action find
entity Q5675756
relation P40
type Q502895
['Q5675756', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q5675756 property:P40 ?e . ?e rdf:type ontology:Q502895 }
Haruko Wakita
action filter_type
action find
entity Haruko Wakita
relation child
type common name
['Haruko Wakita', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Haruko_Wakita property:child ?e . ?e rdf:type ontology:common_name }
[]
common name
Q11612160
SYSTEM
Shigeru Wakita
Q11612160
(Q5675756,P40,c(Q502895))
action filter_type
action find
entity Q5675756
relation P40
type Q502895
[ANSWER] is a successor of Haruko Wakita
['Q5675756', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q5675756 property:P40 ?e . ?e rdf:type ontology:Q502895 }
Shigeru Wakita
Shigeru Wakita is a successor of Haruko Wakita
Shigeru Wakita
action filter_type
action find
entity Haruko Wakita
relation child
type common name
['Haruko Wakita', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Haruko_Wakita property:child ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5675756
P1037
Q2668072
USER
What is the name of collection directed by Haruko Wakita ?
(c(Q2668072),P1037,Q5675756)
action filter_type
action find_reverse
entity Q5675756
relation P1037
type Q2668072
[{'concept': 'Q2668072'}, 'P1037', 'Q5675756']
SELECT DISTINCT ?i WHERE { ?i property:P1037 resource:Q5675756 . ?i rdf:type ontology:Q2668072 }
Haruko Wakita
action filter_type
action find_reverse
entity Haruko Wakita
relation manager/director
type collection
[{'concept': 'collection'}, 'manager/director', 'Haruko Wakita']
SELECT DISTINCT ?i WHERE { ?i property:manager/director resource:Haruko_Wakita . ?i rdf:type ontology:collection }
[]
collection
Q4676340
SYSTEM
Ishikawa Prefectural History Museum
Q4676340
(c(Q2668072),P1037,Q5675756)
action filter_type
action find_reverse
entity Q5675756
relation P1037
type Q2668072
The name of collection directed by Haruko Wakita is [ANSWER]
[{'concept': 'Q2668072'}, 'P1037', 'Q5675756']
SELECT DISTINCT ?i WHERE { ?i property:P1037 resource:Q5675756 . ?i rdf:type ontology:Q2668072 }
Ishikawa Prefectural History Museum
The name of collection directed by Haruko Wakita is Ishikawa Prefectural History Museum
Ishikawa Prefectural History Museum
action filter_type
action find_reverse
entity Haruko Wakita
relation manager/director
type collection
[{'concept': 'collection'}, 'manager/director', 'Haruko Wakita']
SELECT DISTINCT ?i WHERE { ?i property:manager/director resource:Haruko_Wakita . ?i rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5675756
P26
Q502895
USER
Who is married to that one ?
(c(Q502895),P26,Q4676340)
action filter_type
action find
entity Q5675756
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q4676340']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q5675756 property:P26 ?x }
Haruko Wakita
action filter_type
action find
entity Haruko Wakita
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ishikawa Prefectural History Museum']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Haruko_Wakita property:spouse ?x }
[]
common name
Q11612154
SYSTEM
Osamu Wakita
Q11612154
(c(Q502895),P26,Q4676340)
action filter_type
action find
entity Q5675756
relation P26
type Q502895
To [ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q4676340']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q5675756 property:P26 ?x }
Osamu Wakita
To Osamu Wakita is married to that one
Osamu Wakita
action filter_type
action find
entity Haruko Wakita
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Ishikawa Prefectural History Museum']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Haruko_Wakita property:spouse ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11612154
P734
Q82799
USER
Which name is associated with that person ?
(Q11612154,P734,c(Q82799))
action filter_type
action find
entity Q11612154
relation P734
type Q82799
['Q11612154', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q11612154 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Osamu Wakita
action filter_type
action find
entity Osamu Wakita
relation family name
type name
['Osamu Wakita', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Osamu_Wakita property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q16879921
SYSTEM
Wakita
Q16879921
(Q11612154,P734,c(Q82799))
action filter_type
action find
entity Q11612154
relation P734
type Q82799
[ANSWER] is associated with that person
['Q11612154', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q11612154 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Wakita
Wakita is associated with that person
Wakita
action filter_type
action find
entity Osamu Wakita
relation family name
type name
['Osamu Wakita', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Osamu_Wakita property:family_name ?e . ?e rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P195
Q2668072 Q11060274 Q860861
USER
Which collections are max number of prints and sculptures safeguarded in ?
(c(Q11060274)|c(Q860861),P195,c(Q2668072))
action argmax
action union
action find_reverse_tuple_counts
relation P195
type Q2668072
type Q11060274
action find_reverse_tuple_counts
relation P195
type Q2668072
type Q860861
[[{'concept': 'Q11060274'}, {'concept': 'Q860861'}], 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11060274 ) ( ontology:Q860861 ) } } GROUP BY ?e } } . FILTER ( ?q = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q11060274 ) ( ontology:Q860861 ) } } GROUP BY ?s } }
action argmax
action union
action find_reverse_tuple_counts
relation collection
type collection
type print
action find_reverse_tuple_counts
relation collection
type collection
type sculpture
[[{'concept': 'print'}, {'concept': 'sculpture'}], 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:print ) ( ontology:sculpture ) } } GROUP BY ?e } } . FILTER ( ?q = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:print ) ( ontology:sculpture ) } } GROUP BY ?s } }
[]
collection print sculpture
Q2542010
SYSTEM
Flemish Art Collection
Q2542010
(c(Q11060274)|c(Q860861),P195,c(Q2668072))
action argmax
action union
action find_reverse_tuple_counts
relation P195
type Q2668072
type Q11060274
action find_reverse_tuple_counts
relation P195
type Q2668072
type Q860861
Max number of prints and sculptures are safeguarded the [ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q860861'}], 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11060274 ) ( ontology:Q860861 ) } } GROUP BY ?e } } . FILTER ( ?q = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q11060274 ) ( ontology:Q860861 ) } } GROUP BY ?s } }
Flemish Art Collection
Max number of prints and sculptures are safeguarded the Flemish Art Collection
Flemish Art Collection
action argmax
action union
action find_reverse_tuple_counts
relation collection
type collection
type print
action find_reverse_tuple_counts
relation collection
type collection
type sculpture
[[{'concept': 'print'}, {'concept': 'sculpture'}], 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?p ) { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:print ) ( ontology:sculpture ) } } GROUP BY ?e } } . FILTER ( ?q = ?p ) . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:print ) ( ontology:sculpture ) } } GROUP BY ?s } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2542010
P17
Q15617994
USER
Which administrative territory is that collection present in ?
(Q2542010,P17,c(Q15617994))
action filter_type
action find
entity Q2542010
relation P17
type Q15617994
['Q2542010', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q2542010 property:P17 ?q }
Flemish Art Collection
action filter_type
action find
entity Flemish Art Collection
relation country
type designation for an administrative territorial entity
['Flemish Art Collection', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Flemish_Art_Collection property:country ?q }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q2542010,P17,c(Q15617994))
action filter_type
action find
entity Q2542010
relation P17
type Q15617994
That collection is in [ANSWER]
['Q2542010', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q2542010 property:P17 ?q }
Belgium
That collection is in Belgium
Belgium
action filter_type
action find
entity Flemish Art Collection
relation country
type designation for an administrative territorial entity
['Flemish Art Collection', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Flemish_Art_Collection property:country ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q31 Q159
P463
Q484652
USER
How many international organizations were Belgium and Russia a member of ?
(Q31,P463,c(Q484652)) (Q159,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q31
relation P463
type Q484652
action filter_type
action find
entity Q159
relation P463
type Q484652
['Q31', 'P463', {'concept': 'Q484652'}] ['Q159', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q31 property:P463 ?w . ?w rdf:type ontology:Q484652 . resource:Q159 property:P463 ?w . ?w rdf:type ontology:Q484652 }
Belgium Russia
action count
action intersection
action filter_type
action find
entity Belgium
relation member of
type international organization
action filter_type
action find
entity Russia
relation member of
type international organization
['Belgium', 'member of', {'concept': 'international organization'}] ['Russia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Belgium property:member_of ?w . ?w rdf:type ontology:international_organization . resource:Russia property:member_of ?w . ?w rdf:type ontology:international_organization }
[]
international organization
SYSTEM
3
Q81299 Q1065 Q1043527
(Q31,P463,c(Q484652)) (Q159,P463,c(Q484652))
action count
action intersection
action filter_type
action find
entity Q31
relation P463
type Q484652
action filter_type
action find
entity Q159
relation P463
type Q484652
[ANSWER]
['Q31', 'P463', {'concept': 'Q484652'}] ['Q159', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q31 property:P463 ?w . ?w rdf:type ontology:Q484652 . resource:Q159 property:P463 ?w . ?w rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe United Nations Multilateral Investment Guarantee Agency
3
action count
action intersection
action filter_type
action find
entity Belgium
relation member of
type international organization
action filter_type
action find
entity Russia
relation member of
type international organization
['Belgium', 'member of', {'concept': 'international organization'}] ['Russia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Belgium property:member_of ?w . ?w rdf:type ontology:international_organization . resource:Russia property:member_of ?w . ?w rdf:type ontology:international_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P530
Q1048835
USER
Who holds diplomatic relationship with Belgium ?
action filter_type
action find
entity Q31
relation P530
type Q1048835
SELECT DISTINCT ?v WHERE { resource:Q31 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Belgium
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?v WHERE { resource:Belgium property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
action filter_type
action find
entity Q31
relation P530
type Q1048835
The [ANSWERS] hold diplomatic relationship with Belgium
SELECT DISTINCT ?v WHERE { resource:Q31 property:P530 ?v . ?v rdf:type ontology:Q1048835 }
Australia Germany
The Australia and Germany hold diplomatic relationship with Belgium
Australia Germany
action filter_type
action find
entity Belgium
relation diplomatic relation
type political territorial entity
SELECT DISTINCT ?v WHERE { resource:Belgium property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q408 Q183
P530
Q1048835
USER
Who have diplomatic relationships with those ones ?
(Q408,P530,c(Q1048835)) (Q183,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
['Q408', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?m property:P530 ?o . ?o rdf:type ontology:Q1048835 . VALUES ( ?m ) { ( resource:Q408 ) ( resource:Q183 ) } }
Australia Germany
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Australia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?m property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . VALUES ( ?m ) { ( resource:Australia ) ( resource:Germany ) } }
[]
political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q664 Q781 Q183 Q40 Q35 Q16 Q691 Q769 Q685 Q766 Q778 Q664 Q408 Q40 Q35 Q16 Q1000
(Q408,P530,c(Q1048835)) (Q183,P530,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with those ones
['Q408', 'P530', {'concept': 'Q1048835'}] ['Q183', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?m property:P530 ?o . ?o rdf:type ontology:Q1048835 . VALUES ( ?m ) { ( resource:Q408 ) ( resource:Q183 ) } }
New Zealand Antigua and Barbuda Germany Austria Denmark Canada Papua New Guinea Grenada Solomon Islands Jamaica The Bahamas New Zealand Australia Austria Denmark Canada Gabon
Germany, Australia and Denmark have diplomatic relationships with those ones
Germany Australia Denmark
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
['Australia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Germany', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?m property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . VALUES ( ?m ) { ( resource:Australia ) ( resource:Germany ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408 Q35
P1376
Q56061
USER
Which administrative territories are the capital of Germany, Australia and Denmark ?
(c(Q56061),P1376,Q183) (c(Q56061),P1376,Q408) (c(Q56061),P1376,Q35)
action union
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q408
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q35
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q183'] [{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q35']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q408 ) } . ?m property:P1376 ?y }
Germany Australia Denmark
action union
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Australia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Denmark
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Denmark']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Germany ) ( resource:Australia ) } . ?m property:capital_of ?y }
[]
administrative territorial entity
Q64 Q586 Q1748
SYSTEM
Berlin, Bonn, Copenhagen
Q586 Q64 Q3114 Q1748
(c(Q56061),P1376,Q183) (c(Q56061),P1376,Q408) (c(Q56061),P1376,Q35)
action union
action filter_type
action find_reverse
entity Q183
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q408
relation P1376
type Q56061
action filter_type
action find_reverse
entity Q35
relation P1376
type Q56061
[ANSWERS] are the capital of Germany, Australia and Denmark
[{'concept': 'Q56061'}, 'P1376', 'Q183'] [{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q35']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q408 ) } . ?m property:P1376 ?y }
Bonn Berlin Canberra Copenhagen
Berlin, Bonn and Copenhagen are the capital of Germany, Australia and Denmark
Berlin Bonn Copenhagen
action union
action filter_type
action find_reverse
entity Germany
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Australia
relation capital of
type administrative territorial entity
action filter_type
action find_reverse
entity Denmark
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Denmark']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Germany ) ( resource:Australia ) } . ?m property:capital_of ?y }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q64 Q586 Q1748
P1376
Q1048835
USER
Which political territories have those administrative territories have their first city ?
(Q64,P1376,c(Q1048835)) (Q586,P1376,c(Q1048835)) (Q1748,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
['Q64', 'P1376', {'concept': 'Q1048835'}] ['Q586', 'P1376', {'concept': 'Q1048835'}] ['Q1748', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Q586 ) ( resource:Q64 ) ( resource:Q3114 ) } . ?z property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Berlin Bonn Copenhagen
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'political territorial entity'}] ['Bonn', 'capital of', {'concept': 'political territorial entity'}] ['Copenhagen', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Bonn ) ( resource:Berlin ) ( resource:Canberra ) } . ?z property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q183 Q35
SYSTEM
Germany for 1st, 2nd, Denmark for 3rd
Q183 Q183 Q35
(Q64,P1376,c(Q1048835)) (Q586,P1376,c(Q1048835)) (Q1748,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
[ANSWERS]
['Q64', 'P1376', {'concept': 'Q1048835'}] ['Q586', 'P1376', {'concept': 'Q1048835'}] ['Q1748', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Q586 ) ( resource:Q64 ) ( resource:Q3114 ) } . ?z property:P1376 ?s . ?s rdf:type ontology:Q1048835 }
Germany Germany Denmark
Germany, Germany and Denmark have those administrative territories have their first city
Germany Germany Denmark
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'political territorial entity'}] ['Bonn', 'capital of', {'concept': 'political territorial entity'}] ['Copenhagen', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { VALUES ( ?z ) { ( resource:Bonn ) ( resource:Berlin ) ( resource:Canberra ) } . ?z property:capital_of ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P138
Q751708
USER
Which village in the United States has Belgium as its toponym ?
(c(Q751708),P138,Q31)
action filter_type
action find_reverse
entity Q31
relation P138
type Q751708
[{'concept': 'Q751708'}, 'P138', 'Q31']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q31 . ?i rdf:type ontology:Q751708 }
Belgium
action filter_type
action find_reverse
entity Belgium
relation named after
type village in the United States
[{'concept': 'village in the United States'}, 'named after', 'Belgium']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Belgium . ?i rdf:type ontology:village_in_the_United_States }
[]
village in the United States
Q2025327
SYSTEM
Belgium
Q2025327
(c(Q751708),P138,Q31)
action filter_type
action find_reverse
entity Q31
relation P138
type Q751708
[ANSWER] has [ANSWER] as its toponym
[{'concept': 'Q751708'}, 'P138', 'Q31']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q31 . ?i rdf:type ontology:Q751708 }
Belgium
Belgium has Belgium as its toponym
Belgium
action filter_type
action find_reverse
entity Belgium
relation named after
type village in the United States
[{'concept': 'village in the United States'}, 'named after', 'Belgium']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Belgium . ?i rdf:type ontology:village_in_the_United_States }
[]