Simple Question (Direct)
Simple Question
Q1478838
P734
Q82799
USER
Which name is associated with Johanna Köhler ?
(Q1478838,P734,c(Q82799))
action filter_type
action find
entity Q1478838
relation P734
type Q82799
['Q1478838', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1478838 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Johanna Köhler
action filter_type
action find
entity Johanna Köhler
relation family name
type name
['Johanna Köhler', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Johanna_Köhler property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q612479
SYSTEM
Koehler
Q612479
(Q1478838,P734,c(Q82799))
action filter_type
action find
entity Q1478838
relation P734
type Q82799
Ler [ANSWER] is associated with Johanna Köhler
['Q1478838', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q1478838 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Koehler
Ler Koehler is associated with Johanna Köhler
Koehler
action filter_type
action find
entity Johanna Köhler
relation family name
type name
['Johanna Köhler', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Johanna_Köhler property:family_name ?u . ?u rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1478838
P102
Q7278
USER
Which political parties are that person a member of ?
(Q612479,P102,c(Q7278))
action filter_type
action find
entity Q1478838
relation P102
type Q7278
['Q612479', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q1478838 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Johanna Köhler
action filter_type
action find
entity Johanna Köhler
relation member of political party
type political party
['Koehler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:Johanna_Köhler property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
political party
Q49762 Q49754
SYSTEM
Christian Democratic Union, Christian Democratic Union
Q49762 Q49754
(Q612479,P102,c(Q7278))
action filter_type
action find
entity Q1478838
relation P102
type Q7278
[ANSWERS] are that person a member of
['Q612479', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q1478838 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Christian Democratic Union Christian Democratic Union
Christian Democratic Union and Christian Democratic Union are that person a member of
Christian Democratic Union Christian Democratic Union
action filter_type
action find
entity Johanna Köhler
relation member of political party
type political party
['Koehler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:Johanna_Köhler property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1354539
P102
Q502895
USER
Are Erika Wolf the members of those political parties ?
(Q1354539,P102,Q49762) (Q1354539,P102,Q49754)
action is_in
entity prev_answer
action find
entity Q1354539
relation P102
['Q1354539', 'P102', 'Q49762'] ['Q1354539', 'P102', 'Q49754']
ASK WHERE { resource:Q1354539 property:P102 ?m . VALUES ( ?m ) { ( resource:Q49762 ) ( resource:Q49754 ) } }
Erika Wolf
action is_in
entity prev_answer
action find
entity Erika Wolf
relation member of political party
['Erika Wolf', 'member of political party', 'Christian Democratic Union'] ['Erika Wolf', 'member of political party', 'Christian Democratic Union']
ASK WHERE { resource:Erika_Wolf property:member_of_political_party ?m . VALUES ( ?m ) { ( resource:Christian_Democratic_Union ) ( resource:Christian_Democratic_Union ) } }
[]
common name
SYSTEM
YES
(Q1354539,P102,Q49762) (Q1354539,P102,Q49754)
action is_in
entity prev_answer
action find
entity Q1354539
relation P102
[ANSWER]
['Q1354539', 'P102', 'Q49762'] ['Q1354539', 'P102', 'Q49754']
ASK WHERE { resource:Q1354539 property:P102 ?m . VALUES ( ?m ) { ( resource:Q49762 ) ( resource:Q49754 ) } }
Yes
action is_in
entity prev_answer
action find
entity Erika Wolf
relation member of political party
['Erika Wolf', 'member of political party', 'Christian Democratic Union'] ['Erika Wolf', 'member of political party', 'Christian Democratic Union']
ASK WHERE { resource:Erika_Wolf property:member_of_political_party ?m . VALUES ( ?m ) { ( resource:Christian_Democratic_Union ) ( resource:Christian_Democratic_Union ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q950179
P1142
Q1047113 Q7257 Q7278
USER
How many political parties have greater number of special fields or ideologies as their political ideology than European Green Party ?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q950179
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?e WHERE { VALUES ( ?w ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?d rdf:type ?w } GROUP BY ?e } . FILTER ( ?b > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } . resource:Q950179 property:P1142 ?m } } }
European Green Party
action count
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity European Green Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?e WHERE { VALUES ( ?w ) { ( ontology:special_field ) ( ontology:ideology ) } . ?d rdf:type ?w } GROUP BY ?e } . FILTER ( ?b > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:special_field ) ( ontology:ideology ) } } . resource:European_Green_Party property:political_ideology ?m } } }
[]
special field ideology political party
SYSTEM
16
Q196695 Q1129443 Q49768 Q49762 Q653566 Q1628993 Q192821 Q49766 Q25713876 Q613786 Q5398117 Q1393123 Q208242 Q150068 Q18511333 Q130761
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q950179
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?e WHERE { VALUES ( ?w ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?d rdf:type ?w } GROUP BY ?e } . FILTER ( ?b > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } . resource:Q950179 property:P1142 ?m } } }
Green League Democratic Convergence of Catalonia Social Democratic Party of Germany Christian Democratic Union European National Front Democratic Union of Catalonia French Communist Party Alliance '90/The Greens Catalan European Democratic Party Europe Ecology – The Greens Canarian Nationalist Alternative Ciudadanos European People's Party Republican Left of Catalonia VZDOR - strana práce Popular Unity Candidates
16
action count
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity European Green Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) ?e WHERE { VALUES ( ?w ) { ( ontology:special_field ) ( ontology:ideology ) } . ?d rdf:type ?w } GROUP BY ?e } . FILTER ( ?b > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { ?m rdf:type ?o . VALUES ( ?o ) { ( ontology:special_field ) ( ontology:ideology ) } } . resource:European_Green_Party property:political_ideology ?m } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q461886
P1142
Q1047113 Q7257 Q7278
USER
And also tell me about Italian Communist Party?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q461886
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) ?p WHERE { { ?p property:P1142 ?v . ?p rdf:type ontology:Q7278 . ?v rdf:type ontology:Q1047113 } UNION { ?p rdf:type ontology:Q7278 . ?v rdf:type ontology:Q7257 . ?p property:P1142 ?v } } GROUP BY ?p } . FILTER ( ?h > ?l ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q461886 property:P1142 ?g . { { ?g rdf:type ontology:Q1047113 } UNION { ?g rdf:type ontology:Q7257 } } } } }
Italian Communist Party
action count
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Italian Communist Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) ?p WHERE { { ?p property:political_ideology ?v . ?p rdf:type ontology:political_party . ?v rdf:type ontology:special_field } UNION { ?p rdf:type ontology:political_party . ?v rdf:type ontology:ideology . ?p property:political_ideology ?v } } GROUP BY ?p } . FILTER ( ?h > ?l ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Italian_Communist_Party property:political_ideology ?g . { { ?g rdf:type ontology:special_field } UNION { ?g rdf:type ontology:ideology } } } } }
[]
special field ideology political party
SYSTEM
171
Q3395191 Q280906 Q196695 Q3121556 Q950179 Q781486 Q3751152 Q5154286 Q852329 Q8960633 Q1778910 Q3499324 Q2576679 Q605468 Q3395560 Q1422942 Q438783 Q6063944 Q1445096 Q2531228 Q25079 Q2885750 Q587803 Q385543 Q3322686 Q43093 Q2031569 Q3366659 Q3133199 Q1104327 Q368067 Q980471 Q3573249 Q2395103 Q3306235 Q49758 Q2366462 Q3307042 Q2395467 Q155820 Q1129443 Q1278980 Q5033985 Q79854 Q49768 Q49762 Q1987660 Q3296785 Q653566 Q3324157 Q2866675 Q1628993 Q371402 Q641600 Q192821 Q3045391 Q1276239 Q49621 Q9056182 Q3327144 Q549209 Q4894568 Q3313706 Q713302 Q1437906 Q3306974 Q617603 Q537649 Q185088 Q325413 Q202649 Q584040 Q1737170 Q3328003 Q1125061 Q2257766 Q217009 Q49766 Q2118395 Q25713876 Q3313721 Q1377195 Q2838243 Q9056254 Q1153753 Q3326408 Q3327113 Q7309255 Q613786 Q2749535 Q2733414 Q1786349 Q2876738 Q9056440 Q1089640 Q3322790 Q5398117 Q1577483 Q6064176 Q4753534 Q662502 Q576518 Q794247 Q3751189 Q220945 Q777074 Q2165306 Q3750882 Q209546 Q659739 Q3320917 Q9669 Q5154414 Q883448 Q4345980 Q3306652 Q2054574 Q581186 Q2055003 Q634372 Q1393123 Q3322771 Q3028838 Q11698116 Q3328052 Q3327928 Q1029761 Q1359816 Q208242 Q18761823 Q17427 Q3395147 Q611548 Q2099347 Q3366598 Q3125165 Q3089721 Q49756 Q965481 Q49754 Q49755 Q639383 Q3133156 Q150068 Q625556 Q6063925 Q1412555 Q606955 Q788345 Q18511333 Q3306992 Q3780661 Q3134856 Q5604424 Q3328040 Q3047694 Q3327447 Q3571603 Q3181825 Q956240 Q1780610 Q2597196 Q937365 Q3175770 Q6063953 Q427325 Q8347650 Q3133165 Q8350511 Q130761 Q885433
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action greater
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q461886
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) ?p WHERE { { ?p property:P1142 ?v . ?p rdf:type ontology:Q7278 . ?v rdf:type ontology:Q1047113 } UNION { ?p rdf:type ontology:Q7278 . ?v rdf:type ontology:Q7257 . ?p property:P1142 ?v } } GROUP BY ?p } . FILTER ( ?h > ?l ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q461886 property:P1142 ?g . { { ?g rdf:type ontology:Q1047113 } UNION { ?g rdf:type ontology:Q7257 } } } } }
Liberal Democratic Party (Spain) Socialist Party of Navarra-PSOE Green League Syndicalist Party European Green Party Australian Greens Democrats Convergence of Navarre Communist Initiative Movement for a Europe of Liberties and Democracy Ezker Anitza Popular Socialist Party Green Party Communist Party of Greece (Marxist–Leninist) Communist Party of Poland Partido Galeguista Demócrata Radical Democratic Party Democratic Alternative Revolutionary Communist Party People's Party of Catalonia Euskadiko Ezkerra Alliance of Liberals and Democrats for Europe Party Socialist Party of National Liberation Communist Party of Norway Communist Party of the Netherlands Liberal Party Basque Nationalist Party People's Party of Galicia Russian Party Revolutionary Communist League Canarian Coalition Alliance of European National Movements Regional Action Communist Party of Aragon Pridnestrovie Communist Party Partido Galeguista National Democratic Party of Germany Regionalist Party of Cantabria Communist Party of National Liberation Communist Party of West Belarus Constitutional Democratic Party Democratic Convergence of Catalonia Andalusian Party Cantonal Party Communist Party of the Soviet Union Social Democratic Party of Germany Christian Democratic Union Green Confederation Galician Socialist Party-Galician Left European National Front Galician Party of the Proletariat Askatasuna Democratic Union of Catalonia Communist Party of Cuba Japanese Communist Party French Communist Party Ezker Batua – Berdeak EUDemocrats Workers Party of South Korea Christian Democratic Party Liberal Democratic Centre Union of the Democratic Centre Communist Party of Asturias Assembleia do Povo Unido Green Party Taiwan Asturias Forum Galician Nationalist Party-Galicianist Party Communist Workers' Party of Germany Communist Party of Hungary People's Party Communist Party of Belarus Party of the European Left España 2000 Italian Pirate Party Nationalist Left Eusko Alkartasuna Spanish Communist Workers' Party Socialist Revolutionary Party Alliance '90/The Greens Algerian Communist Party Catalan European Democratic Party Catalunya Lliure European Alliance for Freedom People's Alliance People's Party of Cantabria Ecology Generation Communist Party of the Valencian Country Communist Party of Spain Regionalist Party of Guadalajara Europe Ecology – The Greens Galician Left Alternative Socialist Party of the Basque Country – Basque Country Left Spanish Communist Workers' Party Democratic Left Nationalist Party of the Valencian Country Chunta Aragonesista Euskal Ezkerra Canarian Nationalist Alternative Alliance of European Conservatives and Reformists Nationalist Party of Cantabria Andalusian Social Liberal Party Federation of the Greens Communist Party of Aragon Partíu Asturianista Alternativa Popular Canaria Party of European Socialists Communist Party of Burma People's Alliance Communist Party of the Basque Country Batasuna Green Party of Switzerland Equo Green Party of England and Wales Communist Party of Madrid Association for Solidarity Perspectives Party of Democratic Reform Galician Coalition Aragonese Party Communist Party of Albania Socialists' Party of Catalonia Democratic Popular Party Ciudadanos Euskal Iraultzarako Alderdia Social Democratic Party Unified Socialist Party of Andalusia Partido Galeguista Anova-Nationalist Brotherhood Euskal Herria Bildu Communist Party of Thailand European People's Party The Greens Communist Party of China Democratic Reformist Party Bildu Azerbaijan Communist Party People's Party of Navarre Democratic Federal Republican Party Workers' Communist Party Democratic Farmers' Party of Germany Communist Party Christian Democratic Union Liberal Democratic Party of Germany European Free Alliance Unified Communist Party of Spain Republican Left of Catalonia Aralar Party Castilian Party Communist League of West Germany Communist Party of South Ossetia Democratic and Social Centre VZDOR - strana práce Galician Workers Party Communist Party of the Canaries Communist Party of Spain (Marxist–Leninist) Greens New South Wales National Front of Catalonia Socialist Party of Galicia United Left Socialist Party of Aragon Revolutionary Communist Party Spanish Socialist Workers' Party of Andalusia Communist Party of Latvia Brazilian Communist Party PSM-Nationalist Agreement Communist Party of Spain (Reconstituted) Partido Comunista de Galicia Communist Party of Vietnam Unitarian Candidacy of Workers Workers' Party of Spain – Communist Unity Galician Convergence Popular Unity Candidates Galician Nationalist Bloc
171
action count
action greater
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Italian Communist Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) ?p WHERE { { ?p property:political_ideology ?v . ?p rdf:type ontology:political_party . ?v rdf:type ontology:special_field } UNION { ?p rdf:type ontology:political_party . ?v rdf:type ontology:ideology . ?p property:political_ideology ?v } } GROUP BY ?p } . FILTER ( ?h > ?l ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Italian_Communist_Party property:political_ideology ?g . { { ?g rdf:type ontology:special_field } UNION { ?g rdf:type ontology:ideology } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1478838
P937
Q56061
USER
What is the location where Johanna Köhler worked ?
(Q1478838,P937,c(Q56061))
action filter_type
action find
entity Q1478838
relation P937
type Q56061
['Q1478838', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1478838 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Johanna Köhler
action filter_type
action find
entity Johanna Köhler
relation work location
type administrative territorial entity
['Johanna Köhler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Johanna_Köhler property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1729
SYSTEM
Erfurt
Q1729
(Q1478838,P937,c(Q56061))
action filter_type
action find
entity Q1478838
relation P937
type Q56061
The location Johanna Köhler worked is in [ANSWER]
['Q1478838', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q1478838 property:P937 ?m . ?m rdf:type ontology:Q56061 }
Erfurt
The location Johanna Köhler worked is in Erfurt
Erfurt
action filter_type
action find
entity Johanna Köhler
relation work location
type administrative territorial entity
['Johanna Köhler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Johanna_Köhler property:work_location ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1971710
Q56061
USER
And how about Viktor Ilyukhin?
(Q1971710,P937,c(Q56061))
action filter_type
action find
entity Q1971710
relation P937
type Q56061
['Q1971710', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1971710 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Viktor Ilyukhin
action filter_type
action find
entity Viktor Ilyukhin
relation work location
type administrative territorial entity
['Viktor Ilyukhin', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Viktor_Ilyukhin property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q1971710,P937,c(Q56061))
action filter_type
action find
entity Q1971710
relation P937
type Q56061
[ANSWER]
['Q1971710', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q1971710 property:P937 ?i . ?i rdf:type ontology:Q56061 }
Moscow
Moscow
action filter_type
action find
entity Viktor Ilyukhin
relation work location
type administrative territorial entity
['Viktor Ilyukhin', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Viktor_Ilyukhin property:work_location ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q649 Q1242307
P47
Q1048835
USER
How many political territories share the border with Moscow or Ereño ?
(Q649,P47,c(Q1048835)) (Q1242307,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q649
relation P47
type Q1048835
action filter_type
action find
entity Q1242307
relation P47
type Q1048835
['Q649', 'P47', {'concept': 'Q1048835'}] ['Q1242307', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Q649 ) ( resource:Q1242307 ) } . ?z property:P47 ?k }
Moscow Ereño
action count
action union
action filter_type
action find
entity Moscow
relation shares border with
type political territorial entity
action filter_type
action find
entity Ereño
relation shares border with
type political territorial entity
['Moscow', 'shares border with', {'concept': 'political territorial entity'}] ['Ereño', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Moscow ) ( resource:Ereño ) } . ?z property:shares_border_with ?k }
[]
political territorial entity
SYSTEM
6
Q1227941 Q1228081 Q1228053 Q1227981 Q765761 Q1228003
(Q649,P47,c(Q1048835)) (Q1242307,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q649
relation P47
type Q1048835
action filter_type
action find
entity Q1242307
relation P47
type Q1048835
[ANSWER]
['Q649', 'P47', {'concept': 'Q1048835'}] ['Q1242307', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Q649 ) ( resource:Q1242307 ) } . ?z property:P47 ?k }
Ispaster Ea Gautegiz Arteaga Ibarrangelu Nabarniz Kortezubi
6
action count
action union
action filter_type
action find
entity Moscow
relation shares border with
type political territorial entity
action filter_type
action find
entity Ereño
relation shares border with
type political territorial entity
['Moscow', 'shares border with', {'concept': 'political territorial entity'}] ['Ereño', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?z ) { ( resource:Moscow ) ( resource:Ereño ) } . ?z property:shares_border_with ?k }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13750 Q1478838
P47 P27
Q1048835
USER
Which political territories are the countries of citizenship of Johanna Köhler or are adjacent to Benguet ?
OR((Q1478838,P27,c(Q1048835)), (Q13750,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1478838
relation P27
action find
entity Q13750
relation P47
type Q1048835
{'OR': [['Q1478838', 'P27', {'concept': 'Q1048835'}], ['Q13750', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1478838 property:P27 ?k } UNION { resource:Q13750 property:P47 ?k } } . ?k rdf:type ontology:Q1048835 }
Benguet Johanna Köhler
action filter_type
action union
action find
entity Johanna Köhler
relation country of citizenship
action find
entity Benguet
relation shares border with
type political territorial entity
{'OR': [['Johanna Köhler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Benguet', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Johanna_Köhler property:country_of_citizenship ?k } UNION { resource:Benguet property:shares_border_with ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q12741 Q13829 Q183 Q13871 Q13812 Q13866 Q13861
SYSTEM
Ilocos Sur, La Union, Germany, Pangasinan, Ifugao, Nueva Vizcaya, Mountain Province
Q12741 Q13829 Q183 Q13871 Q13812 Q13866 Q13861
OR((Q1478838,P27,c(Q1048835)), (Q13750,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1478838
relation P27
action find
entity Q13750
relation P47
type Q1048835
[ANSWERS] are the countries of citizenship of Johanna Köhler or are adjacent to Benguet
{'OR': [['Q1478838', 'P27', {'concept': 'Q1048835'}], ['Q13750', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q1478838 property:P27 ?k } UNION { resource:Q13750 property:P47 ?k } } . ?k rdf:type ontology:Q1048835 }
Ilocos Sur La Union Germany Pangasinan Ifugao Nueva Vizcaya Mountain Province
Ilocos Sur, La Union, Germany, Pangasinan, Ifugao, Nueva Vizcaya and Mountain Province are the countries of citizenship of Johanna Köhler or are adjacent to Benguet
Ilocos Sur La Union Germany Pangasinan Ifugao Nueva Vizcaya Mountain Province
action filter_type
action union
action find
entity Johanna Köhler
relation country of citizenship
action find
entity Benguet
relation shares border with
type political territorial entity
{'OR': [['Johanna Köhler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Benguet', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Johanna_Köhler property:country_of_citizenship ?k } UNION { resource:Benguet property:shares_border_with ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q2235308 Q7743
USER
Which political territories owned atleast 1 ship types and homes ?
(c(Q2235308)|c(Q7743),P127,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
value 1
[[{'concept': 'Q2235308'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { { ?w property:P127 ?r . ?r rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q2235308 } UNION { ?w rdf:type ontology:Q7743 . ?r rdf:type ontology:Q1048835 . ?w property:P127 ?r } } GROUP BY ?r } . FILTER ( ?z >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
value 1
[[{'concept': 'ship type'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { { ?w property:owned_by ?r . ?r rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:ship_type } UNION { ?w rdf:type ontology:home . ?r rdf:type ontology:political_territorial_entity . ?w property:owned_by ?r } } GROUP BY ?r } . FILTER ( ?z >= 1 ) }
[]
political territorial entity ship type home
Q193317 Q202174 Q206926
SYSTEM
Pardubice Region, Argyll and Bute, North Ayrshire
Q193317 Q202174 Q206926
(c(Q2235308)|c(Q7743),P127,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q7743
value 1
[ANSWERS] owned atleast 1 ship types and homes
[[{'concept': 'Q2235308'}, {'concept': 'Q7743'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { { ?w property:P127 ?r . ?r rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q2235308 } UNION { ?w rdf:type ontology:Q7743 . ?r rdf:type ontology:Q1048835 . ?w property:P127 ?r } } GROUP BY ?r } . FILTER ( ?z >= 1 ) }
Pardubice Region Argyll and Bute North Ayrshire
Pardubice Region, Argyll and Bute and North Ayrshire owned atleast 1 ship types and homes
Pardubice Region Argyll and Bute North Ayrshire
action atleast
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type home
value 1
[[{'concept': 'ship type'}, {'concept': 'home'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) ?r WHERE { { ?w property:owned_by ?r . ?r rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:ship_type } UNION { ?w rdf:type ontology:home . ?r rdf:type ontology:political_territorial_entity . ?w property:owned_by ?r } } GROUP BY ?r } . FILTER ( ?z >= 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q193317 Q202174 Q206926
P17
Q15617994
USER
Which administrative territories are those political territories located in ?
(Q193317,P17,c(Q15617994)) (Q202174,P17,c(Q15617994)) (Q206926,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q193317', 'P17', {'concept': 'Q15617994'}] ['Q202174', 'P17', {'concept': 'Q15617994'}] ['Q206926', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Q193317 ) ( resource:Q202174 ) ( resource:Q206926 ) } . ?o rdf:type ontology:Q15617994 . ?k property:P17 ?o }
Pardubice Region Argyll and Bute North Ayrshire
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Pardubice Region', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Argyll and Bute', 'country', {'concept': 'designation for an administrative territorial entity'}] ['North Ayrshire', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Pardubice_Region ) ( resource:Argyll_and_Bute ) ( resource:North_Ayrshire ) } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:country ?o }
[]
designation for an administrative territorial entity
Q213 Q145 Q145
SYSTEM
Czech Republic for 1st, United Kingdom for 2nd, 3rd
Q213 Q145 Q145
(Q193317,P17,c(Q15617994)) (Q202174,P17,c(Q15617994)) (Q206926,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q193317', 'P17', {'concept': 'Q15617994'}] ['Q202174', 'P17', {'concept': 'Q15617994'}] ['Q206926', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Q193317 ) ( resource:Q202174 ) ( resource:Q206926 ) } . ?o rdf:type ontology:Q15617994 . ?k property:P17 ?o }
Czech Republic United Kingdom United Kingdom
Those political territories are located in Czech Republic, United Kingdom and United Kingdom
Czech Republic United Kingdom United Kingdom
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Pardubice Region', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Argyll and Bute', 'country', {'concept': 'designation for an administrative territorial entity'}] ['North Ayrshire', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?k ) { ( resource:Pardubice_Region ) ( resource:Argyll_and_Bute ) ( resource:North_Ayrshire ) } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:country ?o }
[]
Clarification
Simple Question|Single Entity|Indirect
Q213
P495
Q2342494
USER
What are that administrative territory a country of origin of ?
(c(Q2342494),P495,Q213)
action filter_type
action find_reverse
entity Q213
relation P495
type Q2342494
[{'concept': 'Q2342494'}, 'P495', 'Q213']
SELECT DISTINCT ?v WHERE { ?v property:P495 resource:Q213 . ?v rdf:type ontology:Q2342494 }
Czech Republic
action filter_type
action find_reverse
entity Czech Republic
relation country of origin
type collectable
[{'concept': 'collectable'}, 'country of origin', 'Czech Republic']
SELECT DISTINCT ?v WHERE { ?v property:country_of_origin resource:Czech_Republic . ?v rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q213
SYSTEM
Did you mean Czech Republic ?
Q213 Q145 Q145
(c(Q2342494),P495,Q213) (c(Q2342494),P495,Q145) (c(Q2342494),P495,Q145)
[ANSWER]
[{'concept': 'Q2342494'}, 'P495', 'Q213'] [{'concept': 'Q2342494'}, 'P495', 'Q145'] [{'concept': 'Q2342494'}, 'P495', 'Q145']
SELECT DISTINCT ?v WHERE { ?v property:P495 resource:Q213 . ?v rdf:type ontology:Q2342494 }
Czech Republic United Kingdom United Kingdom
Did you mean Czech Republic ?
Czech Republic
[{'concept': 'collectable'}, 'country of origin', 'Czech Republic'] [{'concept': 'collectable'}, 'country of origin', 'United Kingdom'] [{'concept': 'collectable'}, 'country of origin', 'United Kingdom']
SELECT DISTINCT ?v WHERE { ?v property:country_of_origin resource:Czech_Republic . ?v rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2342494),P495,Q213)
[{'concept': 'Q2342494'}, 'P495', 'Q213']
[{'concept': 'collectable'}, 'country of origin', 'Czech Republic']
[]
Q12040379 Q27527748 Q22661350
SYSTEM
Nanobook, Chrámy, kostely, svatyně a kaple v Olomouci, Programovací jazyk KAREL
Q4720558 Q24034043 Q2461792 Q27527748 Q22674792 Q22809888 Q22809898 Q2736195 Q17000195 Q22809656 Q3505812 Q24207209 Q12040379 Q22661350
(c(Q2342494),P495,Q213)
action filter_type
action find_reverse
entity Q213
relation P495
type Q2342494
That administrative territory a country of origin of are the [ANSWERS]
[{'concept': 'Q2342494'}, 'P495', 'Q213']
SELECT DISTINCT ?v WHERE { ?v property:P495 resource:Q213 . ?v rdf:type ontology:Q2342494 }
Alexandr v tramvaji Do tmy Too Loud a Solitude Chrámy, kostely, svatyně a kaple v Olomouci GIMP: ilustrovaný průvodce Lexikon české šlechty II Lexikon české šlechty III Immortality The Questionnaire Lexikon české šlechty The Grandma Řemesla Nanobook Programovací jazyk KAREL
That administrative territory a country of origin of are the Nanobook, Chrámy, kostely, svatyně a kaple v Olomouci and Programovací jazyk KAREL
Nanobook Chrámy, kostely, svatyně a kaple v Olomouci Programovací jazyk KAREL
action filter_type
action find_reverse
entity Czech Republic
relation country of origin
type collectable
[{'concept': 'collectable'}, 'country of origin', 'Czech Republic']
SELECT DISTINCT ?v WHERE { ?v property:country_of_origin resource:Czech_Republic . ?v rdf:type ontology:collectable }
[]