Simple Question (Direct)
Simple Question
Q1461048
P21
Q290
USER
Which sex does Friedrich Matz belong to ?
(Q1461048,P21,c(Q290))
action filter_type
action find
entity Q1461048
relation P21
type Q290
['Q1461048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1461048 property:P21 ?u }
Friedrich Matz
action filter_type
action find
entity Friedrich Matz
relation gender
type sex
['Friedrich Matz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Friedrich_Matz property:gender ?u }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1461048,P21,c(Q290))
action filter_type
action find
entity Q1461048
relation P21
type Q290
Friedrich Matz belongs to [ANSWER]
['Q1461048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q1461048 property:P21 ?u }
male
Friedrich Matz belongs to male
male
action filter_type
action find
entity Friedrich Matz
relation gender
type sex
['Friedrich Matz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Friedrich_Matz property:gender ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1461048
P19
Q486972
USER
Which human settlement was that person born in ?
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q1461048
relation P19
type Q486972
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q1461048 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Friedrich Matz
action filter_type
action find
entity Friedrich Matz
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Friedrich_Matz property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
human settlement
Q2843
SYSTEM
Lübeck
Q2843
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q1461048
relation P19
type Q486972
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q1461048 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Lübeck
That person was born in Lübeck
Lübeck
action filter_type
action find
entity Friedrich Matz
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Friedrich_Matz property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2843 Q735282 Q183
P17
Q1048835
USER
Is Lübeck located in Boiro and Germany ?
(Q2843,P17,Q735282) (Q2843,P17,Q183)
action is_in
entity Q2843
action intersection
action find_reverse
entity Q735282
relation P17
action find_reverse
entity Q183
relation P17
['Q2843', 'P17', 'Q735282'] ['Q2843', 'P17', 'Q183']
ASK WHERE { resource:Q2843 property:P17 resource:Q735282 . resource:Q2843 property:P17 resource:Q183 }
Lübeck Boiro Germany
action is_in
entity Lübeck
action intersection
action find_reverse
entity Boiro
relation country
action find_reverse
entity Germany
relation country
['Lübeck', 'country', 'Boiro'] ['Lübeck', 'country', 'Germany']
ASK WHERE { resource:Lübeck property:country resource:Boiro . resource:Lübeck property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q2843,P17,Q735282) (Q2843,P17,Q183)
action is_in
entity Q2843
action intersection
action find_reverse
entity Q735282
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q2843', 'P17', 'Q735282'] ['Q2843', 'P17', 'Q183']
ASK WHERE { resource:Q2843 property:P17 resource:Q735282 . resource:Q2843 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Lübeck
action intersection
action find_reverse
entity Boiro
relation country
action find_reverse
entity Germany
relation country
['Lübeck', 'country', 'Boiro'] ['Lübeck', 'country', 'Germany']
ASK WHERE { resource:Lübeck property:country resource:Boiro . resource:Lübeck property:country resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q486972 Q1048835
USER
Which political territories are twin city of around 2 human settlements ?
(c(Q1048835),P190,c(Q486972))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 2
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?d ) WHERE { ?u property:P190 ?i . ?i rdf:type ontology:Q486972 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } }
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?d ) WHERE { ?u property:sister_city ?i . ?i rdf:type ontology:human_settlement . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
human settlement political territorial entity
Q615722
SYSTEM
Santa Fe
Q615722
(c(Q1048835),P190,c(Q486972))
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q486972
value 2
[ANSWER] is twin city of around 2 human settlements
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?d ) WHERE { ?u property:P190 ?i . ?i rdf:type ontology:Q486972 . ?u rdf:type ontology:Q1048835 } GROUP BY ?u } }
Santa Fe
Santa Fe is twin city of around 2 human settlements
Santa Fe
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
value 2
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?d = 2 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?d ) WHERE { ?u property:sister_city ?i . ?i rdf:type ontology:human_settlement . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q191
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with approximately the same number of political territories as Estonia ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?j ) WHERE { ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?y property:P530 ?s } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q191 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?a ) }
Estonia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?j ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?s } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Estonia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?a ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?j ) WHERE { ?y rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?y property:P530 ?s } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q191 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?j = ?a ) }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?j ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?s } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Estonia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q347
P530
Q15617994 Q1048835
USER
And how about Liechtenstein?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q347 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?r ) WHERE { ?p property:P530 ?k . ?p rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?p } }
Liechtenstein
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Liechtenstein property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?r ) WHERE { ?p property:diplomatic_relation ?k . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Q347 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?r ) WHERE { ?p property:P530 ?k . ?p rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?p } }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { resource:Liechtenstein property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?r ) WHERE { ?p property:diplomatic_relation ?k . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?p } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2843
P47
Q1048835
USER
Which political territories share border with Lübeck ?
(Q2843,P47,c(Q1048835))
action filter_type
action find
entity Q2843
relation P47
type Q1048835
['Q2843', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q2843 property:P47 ?e . ?e rdf:type ontology:Q1048835 }
Lübeck
action filter_type
action find
entity Lübeck
relation shares border with
type political territorial entity
['Lübeck', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lübeck property:shares_border_with ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q3000 Q3003 Q2876
SYSTEM
Herzogtum Lauenburg, Stormarn, Nordwestmecklenburg District
Q2876 Q2975 Q3000 Q3003
(Q2843,P47,c(Q1048835))
action filter_type
action find
entity Q2843
relation P47
type Q1048835
[ANSWERS] share border with Lübeck
['Q2843', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q2843 property:P47 ?e . ?e rdf:type ontology:Q1048835 }
Nordwestmecklenburg District Ostholstein Herzogtum Lauenburg Stormarn
Herzogtum Lauenburg, Stormarn and Nordwestmecklenburg District share border with Lübeck
Herzogtum Lauenburg Stormarn Nordwestmecklenburg District
action filter_type
action find
entity Lübeck
relation shares border with
type political territorial entity
['Lübeck', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lübeck property:shares_border_with ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13633
Q1048835
USER
And how about Sant Feliu de Buixalleu?
(Q13633,P47,c(Q1048835))
action filter_type
action find
entity Q13633
relation P47
type Q1048835
['Q13633', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q13633 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Sant Feliu de Buixalleu
action filter_type
action find
entity Sant Feliu de Buixalleu
relation shares border with
type political territorial entity
['Sant Feliu de Buixalleu', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Sant_Feliu_de_Buixalleu property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15441 Q13010 Q13032
SYSTEM
Sant Celoni, Arbúcies, Santa Coloma de Farners
Q13010 Q13638 Q13637 Q13083 Q15441 Q13078 Q13032 Q13643 Q13073
(Q13633,P47,c(Q1048835))
action filter_type
action find
entity Q13633
relation P47
type Q1048835
[ANSWERS]
['Q13633', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q13633 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Arbúcies Breda Massanes Fogars de la Selva Sant Celoni Riudarenes Santa Coloma de Farners Hostalric Riells i Viabrea
Sant Celoni Arbúcies Santa Coloma de Farners
action filter_type
action find
entity Sant Feliu de Buixalleu
relation shares border with
type political territorial entity
['Sant Feliu de Buixalleu', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Sant_Feliu_de_Buixalleu property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q751074
P47
Q1048835
USER
Are Malaguilla bordered by those ones ?
(Q751074,P47,Q15441) (Q751074,P47,Q13010) (Q751074,P47,Q13032)
action is_in
entity prev_answer
action find
entity Q751074
relation P47
['Q751074', 'P47', 'Q15441'] ['Q751074', 'P47', 'Q13010'] ['Q751074', 'P47', 'Q13032']
ASK WHERE { resource:Q751074 property:P47 ?c . VALUES ( ?c ) { ( resource:Q13010 ) ( resource:Q13638 ) ( resource:Q13637 ) } }
Malaguilla
action is_in
entity prev_answer
action find
entity Malaguilla
relation shares border with
['Malaguilla', 'shares border with', 'Sant Celoni'] ['Malaguilla', 'shares border with', 'Arbúcies'] ['Malaguilla', 'shares border with', 'Santa Coloma de Farners']
ASK WHERE { resource:Malaguilla property:shares_border_with ?c . VALUES ( ?c ) { ( resource:Arbúcies ) ( resource:Breda ) ( resource:Massanes ) } }
[]
political territorial entity
SYSTEM
NO
(Q751074,P47,Q15441) (Q751074,P47,Q13010) (Q751074,P47,Q13032)
action is_in
entity prev_answer
action find
entity Q751074
relation P47
[ANSWER]
['Q751074', 'P47', 'Q15441'] ['Q751074', 'P47', 'Q13010'] ['Q751074', 'P47', 'Q13032']
ASK WHERE { resource:Q751074 property:P47 ?c . VALUES ( ?c ) { ( resource:Q13010 ) ( resource:Q13638 ) ( resource:Q13637 ) } }
No
action is_in
entity prev_answer
action find
entity Malaguilla
relation shares border with
['Malaguilla', 'shares border with', 'Sant Celoni'] ['Malaguilla', 'shares border with', 'Arbúcies'] ['Malaguilla', 'shares border with', 'Santa Coloma de Farners']
ASK WHERE { resource:Malaguilla property:shares_border_with ?c . VALUES ( ?c ) { ( resource:Arbúcies ) ( resource:Breda ) ( resource:Massanes ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2843
P6
Q502895
USER
Which person does Lübeck serve as the head of government for ?
(Q2843,P6,c(Q502895))
action filter_type
action find
entity Q2843
relation P6
type Q502895
['Q2843', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q2843 property:P6 ?x . ?x rdf:type ontology:Q502895 }
Lübeck
action filter_type
action find
entity Lübeck
relation head of government
type common name
['Lübeck', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Lübeck property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
common name
Q824125
SYSTEM
Bernd Saxe
Q824125
(Q2843,P6,c(Q502895))
action filter_type
action find
entity Q2843
relation P6
type Q502895
[ANSWER] Lübeck serves as the head of government
['Q2843', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q2843 property:P6 ?x . ?x rdf:type ontology:Q502895 }
Bernd Saxe
Bernd Saxe Lübeck serves as the head of government
Bernd Saxe
action filter_type
action find
entity Lübeck
relation head of government
type common name
['Lübeck', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Lübeck property:head_of_government ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2843
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that human settlement ?
(c(Q12737077),P1001,Q824125)
action filter_type
action find_reverse
entity Q2843
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q824125']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q2843 . ?e rdf:type ontology:Q12737077 }
Lübeck
action filter_type
action find_reverse
entity Lübeck
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Bernd Saxe']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Lübeck . ?e rdf:type ontology:occupation }
[]
occupation
Q1640530
SYSTEM
Mayor of Lübeck
Q1640530
(c(Q12737077),P1001,Q824125)
action filter_type
action find_reverse
entity Q2843
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that human settlement
[{'concept': 'Q12737077'}, 'P1001', 'Q824125']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q2843 . ?e rdf:type ontology:Q12737077 }
Mayor of Lübeck
The Mayor of Lübeck presides the jurisdiction over that human settlement
Mayor of Lübeck
action filter_type
action find_reverse
entity Lübeck
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Bernd Saxe']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Lübeck . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2612514 Q615722
P19 P190
Q515
USER
Which cities are the sister cities of Santa Fe or are the birthplace of Alyaksandr Hawrushka ?
OR((Q615722,P190,c(Q515)), (Q2612514,P19,c(Q515)))
action filter_type
action union
action find
entity Q615722
relation P190
action find
entity Q2612514
relation P19
type Q515
{'OR': [['Q615722', 'P190', {'concept': 'Q515'}], ['Q2612514', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q615722 property:P190 ?y } UNION { resource:Q2612514 property:P19 ?y } } . ?y rdf:type ontology:Q515 }
Alyaksandr Hawrushka Santa Fe
action filter_type
action union
action find
entity Santa Fe
relation sister city
action find
entity Alyaksandr Hawrushka
relation place of birth
type city
{'OR': [['Santa Fe', 'sister city', {'concept': 'city'}], ['Alyaksandr Hawrushka', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Santa_Fe property:sister_city ?y } UNION { resource:Alyaksandr_Hawrushka property:place_of_birth ?y } } . ?y rdf:type ontology:city }
[]
city
Q1711 Q44244
SYSTEM
Potsdam, Santa Fe
Q1711 Q44244
OR((Q615722,P190,c(Q515)), (Q2612514,P19,c(Q515)))
action filter_type
action union
action find
entity Q615722
relation P190
action find
entity Q2612514
relation P19
type Q515
[ANSWERS] are the sister cities of Santa Fe or are the birthplace of Alyaksandr Hawrushka
{'OR': [['Q615722', 'P190', {'concept': 'Q515'}], ['Q2612514', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q615722 property:P190 ?y } UNION { resource:Q2612514 property:P19 ?y } } . ?y rdf:type ontology:Q515 }
Potsdam Santa Fe
Potsdam and Santa Fe are the sister cities of Santa Fe or are the birthplace of Alyaksandr Hawrushka
Potsdam Santa Fe
action filter_type
action union
action find
entity Santa Fe
relation sister city
action find
entity Alyaksandr Hawrushka
relation place of birth
type city
{'OR': [['Santa Fe', 'sister city', {'concept': 'city'}], ['Alyaksandr Hawrushka', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Santa_Fe property:sister_city ?y } UNION { resource:Alyaksandr_Hawrushka property:place_of_birth ?y } } . ?y rdf:type ontology:city }
[]