Simple Question (Direct)
Simple Question
Q313896
P27
Q15617994
USER
Which administrative territory is Jerry Falwell a civilian of ?
(Q313896,P27,c(Q15617994))
action filter_type
action find
entity Q313896
relation P27
type Q15617994
['Q313896', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q313896 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Jerry Falwell
action filter_type
action find
entity Jerry Falwell
relation country of citizenship
type designation for an administrative territorial entity
['Jerry Falwell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Falwell property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q313896,P27,c(Q15617994))
action filter_type
action find
entity Q313896
relation P27
type Q15617994
The [ANSWER] is Jerry Falwell a civilian of
['Q313896', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q313896 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
United States of America
The United States of America is Jerry Falwell a civilian of
United States of America
action filter_type
action find
entity Jerry Falwell
relation country of citizenship
type designation for an administrative territorial entity
['Jerry Falwell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Jerry_Falwell property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P1376
Q56061
USER
Which administrative territories are the capital of that administrative territory ?
(c(Q56061),P1376,Q30)
action filter_type
action find_reverse
entity Q30
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q30']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . ?r property:P1376 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . ?r property:capital_of resource:United_States_of_America }
[]
administrative territorial entity
Q60 Q61
SYSTEM
New York City, Washington, D.C.
Q60 Q61
(c(Q56061),P1376,Q30)
action filter_type
action find_reverse
entity Q30
relation P1376
type Q56061
[ANSWERS]
[{'concept': 'Q56061'}, 'P1376', 'Q30']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . ?r property:P1376 resource:Q30 }
New York City Washington, D.C.
New York City and Washington, D.C. are the capital of that administrative territory
New York City Washington, D.C.
action filter_type
action find_reverse
entity United States of America
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'United States of America']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . ?r property:capital_of resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q60 Q61
P1001
Q12737077
USER
Which occupations apply to jurisdiction over New York City and Washington, D.C. ?
(c(Q12737077),P1001,Q60) (c(Q12737077),P1001,Q61)
action union
action filter_type
action find_reverse
entity Q60
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q61
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q60'] [{'concept': 'Q12737077'}, 'P1001', 'Q61']
SELECT DISTINCT ?c WHERE { VALUES ( ?d ) { ( resource:Q60 ) ( resource:Q61 ) } . ?c property:P1001 ?d }
New York City Washington, D.C.
action union
action filter_type
action find_reverse
entity New York City
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Washington, D.C.
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'New York City'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Washington, D.C.']
SELECT DISTINCT ?c WHERE { VALUES ( ?d ) { ( resource:New_York_City ) ( resource:Washington,_D.C. ) } . ?c property:applies_to_jurisdiction ?d }
[]
occupation
Q785304 Q7013201 Q21856559
SYSTEM
Mayor of New York City, New York City Fire Commissioner, Coroner of New York City
Q7013201 Q21856559 Q22340956 Q785304 Q21349507 Q5190572 Q7207430
(c(Q12737077),P1001,Q60) (c(Q12737077),P1001,Q61)
action union
action filter_type
action find_reverse
entity Q60
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q61
relation P1001
type Q12737077
City [ANSWERS] apply to jurisdiction over New York City and Washington, D.C.
[{'concept': 'Q12737077'}, 'P1001', 'Q60'] [{'concept': 'Q12737077'}, 'P1001', 'Q61']
SELECT DISTINCT ?c WHERE { VALUES ( ?d ) { ( resource:Q60 ) ( resource:Q61 ) } . ?c property:P1001 ?d }
New York City Fire Commissioner Coroner of New York City Postmaster of New York City Mayor of New York City Washington DC Recorder of Deeds Mayor of the District of Columbia Poet Laureate of the District of Columbia
City Mayor of New York City, New York City Fire Commissioner and Coroner of New York City apply to jurisdiction over New York City and Washington, D.C.
Mayor of New York City New York City Fire Commissioner Coroner of New York City
action union
action filter_type
action find_reverse
entity New York City
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Washington, D.C.
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'New York City'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Washington, D.C.']
SELECT DISTINCT ?c WHERE { VALUES ( ?d ) { ( resource:New_York_City ) ( resource:Washington,_D.C. ) } . ?c property:applies_to_jurisdiction ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P190
Q15700808
USER
Which urban unit definition is twin town of New York City ?
(c(Q15700808),P190,Q60)
action filter_type
action find
entity Q60
relation P190
type Q15700808
[{'concept': 'Q15700808'}, 'P190', 'Q60']
SELECT DISTINCT ?e WHERE { resource:Q60 property:P190 ?e . ?e rdf:type ontology:Q15700808 }
New York City
action filter_type
action find
entity New York City
relation sister city
type urban unit definition
[{'concept': 'urban unit definition'}, 'sister city', 'New York City']
SELECT DISTINCT ?e WHERE { resource:New_York_City property:sister_city ?e . ?e rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Q26040
SYSTEM
Borås
Q26040
(c(Q15700808),P190,Q60)
action filter_type
action find
entity Q60
relation P190
type Q15700808
[ANSWER] is twin town of New York City
[{'concept': 'Q15700808'}, 'P190', 'Q60']
SELECT DISTINCT ?e WHERE { resource:Q60 property:P190 ?e . ?e rdf:type ontology:Q15700808 }
Borås
Borås is twin town of New York City
Borås
action filter_type
action find
entity New York City
relation sister city
type urban unit definition
[{'concept': 'urban unit definition'}, 'sister city', 'New York City']
SELECT DISTINCT ?e WHERE { resource:New_York_City property:sister_city ?e . ?e rdf:type ontology:urban_unit_definition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26040
P17
Q15617994
USER
Which administrative territory is that urban unit definition located in ?
(Q26040,P17,c(Q15617994))
action filter_type
action find
entity Q26040
relation P17
type Q15617994
['Q26040', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q26040 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Borås
action filter_type
action find
entity Borås
relation country
type designation for an administrative territorial entity
['Borås', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Borås property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q26040,P17,c(Q15617994))
action filter_type
action find
entity Q26040
relation P17
type Q15617994
That urban unit definition is located in [ANSWER]
['Q26040', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q26040 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Sweden
That urban unit definition is located in Sweden
Sweden
action filter_type
action find
entity Borås
relation country
type designation for an administrative territorial entity
['Borås', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Borås property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q34 Q38
P530
Q15617994
USER
Does Italy have a diplomatic relationship with that one ?
(Q34,P530,Q38)
action is_in
entity Q38
action find
entity Q34
relation P530
['Q34', 'P530', 'Q38']
ASK WHERE { resource:Q34 property:P530 resource:Q38 }
Sweden Italy
action is_in
entity Italy
action find
entity Sweden
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q34,P530,Q38)
action is_in
entity Q38
action find
entity Q34
relation P530
[ANSWER]
['Q34', 'P530', 'Q38']
ASK WHERE { resource:Q34 property:P530 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Sweden
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Italy }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with around the same number of administrative territories as Papua New Guinea ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q691 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?e ) }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?e ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS] have diplomatic associations with around the same number of administrative territories as Papua New Guinea
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { ?o property:P530 ?a . ?o rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q691 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?s = ?e ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic associations with around the same number of administrative territories as Papua New Guinea
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?s ) WHERE { ?o property:diplomatic_relation ?a . ?o rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?s = ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q685
P530
Q15617994 Q1048835
USER
And also tell me about Solomon Islands?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?l ) WHERE { ?p property:P530 ?c . ?p rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q685 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } }
Solomon Islands
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?l ) WHERE { ?p property:diplomatic_relation ?c . ?p rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?l ) WHERE { ?p property:P530 ?c . ?p rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q685 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?l ) WHERE { ?p property:diplomatic_relation ?c . ?p rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?l = ?i ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19046075
P17
Q11024
USER
Are Gettysburg Address present in those political territories ?
(Q19046075,P17,Q35) (Q19046075,P17,Q16) (Q19046075,P17,Q40)
action is_in
entity prev_answer
action find
entity Q19046075
relation P17
['Q19046075', 'P17', 'Q35'] ['Q19046075', 'P17', 'Q16'] ['Q19046075', 'P17', 'Q40']
ASK WHERE { resource:Q19046075 property:P17 ?s . VALUES ( ?s ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Gettysburg Address
action is_in
entity prev_answer
action find
entity Gettysburg Address
relation country
['Gettysburg Address', 'country', 'Denmark'] ['Gettysburg Address', 'country', 'Canada'] ['Gettysburg Address', 'country', 'Austria']
ASK WHERE { resource:Gettysburg_Address property:country ?s . VALUES ( ?s ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
communication
SYSTEM
NO
(Q19046075,P17,Q35) (Q19046075,P17,Q16) (Q19046075,P17,Q40)
action is_in
entity prev_answer
action find
entity Q19046075
relation P17
[ANSWER]
['Q19046075', 'P17', 'Q35'] ['Q19046075', 'P17', 'Q16'] ['Q19046075', 'P17', 'Q40']
ASK WHERE { resource:Q19046075 property:P17 ?s . VALUES ( ?s ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Gettysburg Address
relation country
['Gettysburg Address', 'country', 'Denmark'] ['Gettysburg Address', 'country', 'Canada'] ['Gettysburg Address', 'country', 'Austria']
ASK WHERE { resource:Gettysburg_Address property:country ?s . VALUES ( ?s ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1259862 Q34
P47 P17
Q15617994
USER
Which administrative territories share border with Sweden or are Voivodeship road 500 a part of ?
OR((Q34,P47,c(Q15617994)), (Q1259862,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P47
action find
entity Q1259862
relation P17
type Q15617994
{'OR': [['Q34', 'P47', {'concept': 'Q15617994'}], ['Q1259862', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q34 property:P47 ?v } UNION { resource:Q1259862 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Voivodeship road 500 Sweden
action filter_type
action union
action find
entity Sweden
relation shares border with
action find
entity Voivodeship road 500
relation country
type designation for an administrative territorial entity
{'OR': [['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Voivodeship road 500', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Sweden property:shares_border_with ?v } UNION { resource:Voivodeship_road_500 property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q20 Q36
SYSTEM
Finland, Norway, Poland
Q33 Q20 Q36
OR((Q34,P47,c(Q15617994)), (Q1259862,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34
relation P47
action find
entity Q1259862
relation P17
type Q15617994
[ANSWERS] share border with Sweden or are Voivodeship road 500 a part of
{'OR': [['Q34', 'P47', {'concept': 'Q15617994'}], ['Q1259862', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q34 property:P47 ?v } UNION { resource:Q1259862 property:P17 ?v } } . ?v rdf:type ontology:Q15617994 }
Finland Norway Poland
Finland, Norway and Poland share border with Sweden or are Voivodeship road 500 a part of
Finland Norway Poland
action filter_type
action union
action find
entity Sweden
relation shares border with
action find
entity Voivodeship road 500
relation country
type designation for an administrative territorial entity
{'OR': [['Sweden', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Voivodeship road 500', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Sweden property:shares_border_with ?v } UNION { resource:Voivodeship_road_500 property:country ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33 Q20 Q36
P6
Q502895
USER
Which people do those administrative territories serve as the head of government for ?
(Q33,P6,c(Q502895)) (Q20,P6,c(Q502895)) (Q36,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q33', 'P6', {'concept': 'Q502895'}] ['Q20', 'P6', {'concept': 'Q502895'}] ['Q36', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?q property:P6 ?t . VALUES ( ?q ) { ( resource:Q33 ) ( resource:Q20 ) ( resource:Q36 ) } }
Finland Norway Poland
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Finland', 'head of government', {'concept': 'common name'}] ['Norway', 'head of government', {'concept': 'common name'}] ['Poland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?q property:head_of_government ?t . VALUES ( ?q ) { ( resource:Finland ) ( resource:Norway ) ( resource:Poland ) } }
[]
common name
Q57638 Q503143 Q946
SYSTEM
Jyrki Katainen, Alexander Stubb, Donald Tusk
Q1711532 Q57638 Q503143 Q291644 Q246216 Q946 Q4877021 Q55917
(Q33,P6,c(Q502895)) (Q20,P6,c(Q502895)) (Q36,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS] those administrative territories serve as the head of government
['Q33', 'P6', {'concept': 'Q502895'}] ['Q20', 'P6', {'concept': 'Q502895'}] ['Q36', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?q property:P6 ?t . VALUES ( ?q ) { ( resource:Q33 ) ( resource:Q20 ) ( resource:Q36 ) } }
Juha Sipilä Jyrki Katainen Alexander Stubb Erna Solberg Ewa Kopacz Donald Tusk Beata Szydło Jarosław Kaczyński
Jyrki Katainen, Alexander Stubb and Donald Tusk those administrative territories serve as the head of government
Jyrki Katainen Alexander Stubb Donald Tusk
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Finland', 'head of government', {'concept': 'common name'}] ['Norway', 'head of government', {'concept': 'common name'}] ['Poland', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?q property:head_of_government ?t . VALUES ( ?q ) { ( resource:Finland ) ( resource:Norway ) ( resource:Poland ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q57638 Q503143 Q946
P26
Q502895
USER
Which people have those ones as spouse ?
(c(Q502895),P26,Q57638) (c(Q502895),P26,Q503143) (c(Q502895),P26,Q946)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q57638'] [{'concept': 'Q502895'}, 'P26', 'Q503143'] [{'concept': 'Q502895'}, 'P26', 'Q946']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?b property:P26 ?h . VALUES ( ?b ) { ( resource:Q1711532 ) ( resource:Q57638 ) ( resource:Q503143 ) } }
Jyrki Katainen Alexander Stubb Donald Tusk
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jyrki Katainen'] [{'concept': 'common name'}, 'spouse', 'Alexander Stubb'] [{'concept': 'common name'}, 'spouse', 'Donald Tusk']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?b property:spouse ?h . VALUES ( ?b ) { ( resource:Juha_Sipilä ) ( resource:Jyrki_Katainen ) ( resource:Alexander_Stubb ) } }
[]
common name
Q17278091 Q17278098 Q17278133
SYSTEM
Mervi Katainen, Suzanne Innes-Stubb, Małgorzata Tusk
Q17278091 Q17278098 Q17278133
(c(Q502895),P26,Q57638) (c(Q502895),P26,Q503143) (c(Q502895),P26,Q946)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] have those ones as spouse
[{'concept': 'Q502895'}, 'P26', 'Q57638'] [{'concept': 'Q502895'}, 'P26', 'Q503143'] [{'concept': 'Q502895'}, 'P26', 'Q946']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?b property:P26 ?h . VALUES ( ?b ) { ( resource:Q1711532 ) ( resource:Q57638 ) ( resource:Q503143 ) } }
Mervi Katainen Suzanne Innes-Stubb Małgorzata Tusk
Mervi Katainen, Suzanne Innes-Stubb and Małgorzata Tusk have those ones as spouse
Mervi Katainen Suzanne Innes-Stubb Małgorzata Tusk
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Jyrki Katainen'] [{'concept': 'common name'}, 'spouse', 'Alexander Stubb'] [{'concept': 'common name'}, 'spouse', 'Donald Tusk']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?b property:spouse ?h . VALUES ( ?b ) { ( resource:Juha_Sipilä ) ( resource:Jyrki_Katainen ) ( resource:Alexander_Stubb ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P194
Q1752346
USER
Which assembly is the legislative body for Poland ?
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { resource:Q36 property:P194 ?t . ?t rdf:type ontology:Q1752346 }
Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { resource:Poland property:legislative_body ?t . ?t rdf:type ontology:assembly }
[]
assembly
Q2102558
SYSTEM
Parliament of Poland
Q2102558
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
The [ANSWER] is the legislative body for Poland
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?t WHERE { resource:Q36 property:P194 ?t . ?t rdf:type ontology:Q1752346 }
Parliament of Poland
The Parliament of Poland is the legislative body for Poland
Parliament of Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?t WHERE { resource:Poland property:legislative_body ?t . ?t rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q946
P22
Q502895
USER
Who are the offspring of Donald Tusk ?
(c(Q502895),P22,Q946)
action filter_type
action find_reverse
entity Q946
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q946']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q946 . ?w rdf:type ontology:Q502895 }
Donald Tusk
action filter_type
action find_reverse
entity Donald Tusk
relation father
type common name
[{'concept': 'common name'}, 'father', 'Donald Tusk']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Donald_Tusk . ?w rdf:type ontology:common_name }
[]
common name
Q17278148 Q17278150
SYSTEM
Michał Tusk, Katarzyna Tusk
Q17278148 Q17278150
(c(Q502895),P22,Q946)
action filter_type
action find_reverse
entity Q946
relation P22
type Q502895
The offspring of Donald Tusk are Prince [ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q946']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q946 . ?w rdf:type ontology:Q502895 }
Michał Tusk Katarzyna Tusk
The offspring of Donald Tusk are Prince Michał Tusk and Katarzyna Tusk
Michał Tusk Katarzyna Tusk
action filter_type
action find_reverse
entity Donald Tusk
relation father
type common name
[{'concept': 'common name'}, 'father', 'Donald Tusk']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Donald_Tusk . ?w rdf:type ontology:common_name }
[]