Simple Question (Direct)
Simple Question
Q1465986
P19
Q15617994
USER
Which administrative territory is the birthplace of Fritz Denks ?
(Q1465986,P19,c(Q15617994))
action filter_type
action find
entity Q1465986
relation P19
type Q15617994
['Q1465986', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q1465986 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
Fritz Denks
action filter_type
action find
entity Fritz Denks
relation place of birth
type designation for an administrative territorial entity
['Fritz Denks', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Fritz_Denks property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q2899
SYSTEM
Mülheim an der Ruhr
Q2899
(Q1465986,P19,c(Q15617994))
action filter_type
action find
entity Q1465986
relation P19
type Q15617994
[ANSWER] is the birthplace of Fritz Denks
['Q1465986', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q1465986 property:P19 ?w . ?w rdf:type ontology:Q15617994 }
Mülheim an der Ruhr
Mülheim an der Ruhr is the birthplace of Fritz Denks
Mülheim an der Ruhr
action filter_type
action find
entity Fritz Denks
relation place of birth
type designation for an administrative territorial entity
['Fritz Denks', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Fritz_Denks property:place_of_birth ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1465986
P106
Q12737077
USER
What does that person do for a living ?
(Q2899,P106,c(Q12737077))
action filter_type
action find
entity Q1465986
relation P106
type Q12737077
['Q2899', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1465986 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Fritz Denks
action filter_type
action find
entity Fritz Denks
relation occupation
type occupation
['Mülheim an der Ruhr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Fritz_Denks property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q2899,P106,c(Q12737077))
action filter_type
action find
entity Q1465986
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q2899', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1465986 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Fritz Denks
relation occupation
type occupation
['Mülheim an der Ruhr', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Fritz_Denks property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1465986
P102
Q7278
USER
Which political party is Fritz Denks a member of ?
(Q1465986,P102,c(Q7278))
action filter_type
action find
entity Q1465986
relation P102
type Q7278
['Q1465986', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q1465986 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Fritz Denks
action filter_type
action find
entity Fritz Denks
relation member of political party
type political party
['Fritz Denks', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Fritz_Denks property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1465986,P102,c(Q7278))
action filter_type
action find
entity Q1465986
relation P102
type Q7278
Party [ANSWER] is Fritz Denks a member of
['Q1465986', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q1465986 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Fritz Denks a member of
Social Democratic Party of Germany
action filter_type
action find
entity Fritz Denks
relation member of political party
type political party
['Fritz Denks', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Fritz_Denks property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q49768 Q4323014 Q183
P17
Q1048835
USER
Is that political party present in Novooleksandrivka and Germany ?
(Q49768,P17,Q4323014) (Q49768,P17,Q183)
action is_in
entity Q49768
action intersection
action find_reverse
entity Q4323014
relation P17
action find_reverse
entity Q183
relation P17
['Q49768', 'P17', 'Q4323014'] ['Q49768', 'P17', 'Q183']
ASK WHERE { resource:Q49768 property:P17 resource:Q4323014 . resource:Q49768 property:P17 resource:Q183 }
Social Democratic Party of Germany Novooleksandrivka Germany
action is_in
entity Social Democratic Party of Germany
action intersection
action find_reverse
entity Novooleksandrivka
relation country
action find_reverse
entity Germany
relation country
['Social Democratic Party of Germany', 'country', 'Novooleksandrivka'] ['Social Democratic Party of Germany', 'country', 'Germany']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Novooleksandrivka . resource:Social_Democratic_Party_of_Germany property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q49768,P17,Q4323014) (Q49768,P17,Q183)
action is_in
entity Q49768
action intersection
action find_reverse
entity Q4323014
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q49768', 'P17', 'Q4323014'] ['Q49768', 'P17', 'Q183']
ASK WHERE { resource:Q49768 property:P17 resource:Q4323014 . resource:Q49768 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Social Democratic Party of Germany
action intersection
action find_reverse
entity Novooleksandrivka
relation country
action find_reverse
entity Germany
relation country
['Social Democratic Party of Germany', 'country', 'Novooleksandrivka'] ['Social Democratic Party of Germany', 'country', 'Germany']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:country resource:Novooleksandrivka . resource:Social_Democratic_Party_of_Germany property:country resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q341085
P1142
Q1047113 Q7257 Q7278
USER
How many political parties promote more number of special fields or ideologies than Czech Pirate 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 Q341085
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?o ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?i rdf:type ?o } GROUP BY ?n } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q341085 property:P1142 ?t . { { ?t rdf:type ontology:Q7257 } UNION { ?t rdf:type ontology:Q1047113 } } } } }
Czech Pirate 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 Czech Pirate Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?o ) { ( ontology:special_field ) ( ontology:ideology ) } . ?i rdf:type ?o } GROUP BY ?n } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Czech_Pirate_Party property:political_ideology ?t . { { ?t rdf:type ontology:ideology } UNION { ?t rdf:type ontology:special_field } } } } }
[]
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 Q341085
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?o ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?i rdf:type ?o } GROUP BY ?n } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q341085 property:P1142 ?t . { { ?t rdf:type ontology:Q7257 } UNION { ?t rdf:type ontology:Q1047113 } } } } }
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 Czech Pirate Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?a ) WHERE { VALUES ( ?o ) { ( ontology:special_field ) ( ontology:ideology ) } . ?i rdf:type ?o } GROUP BY ?n } . FILTER ( ?a > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Czech_Pirate_Party property:political_ideology ?t . { { ?t rdf:type ontology:ideology } UNION { ?t rdf:type ontology:special_field } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3307042
P1142
Q1047113 Q7257 Q7278
USER
And what about Communist Party of National Liberation?
(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 Q3307042
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?w WHERE { { ?w property:P1142 ?x . ?w rdf:type ontology:Q7278 . ?x rdf:type ontology:Q1047113 } UNION { ?w property:P1142 ?x . ?x rdf:type ontology:Q7257 . ?w rdf:type ontology:Q7278 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q3307042 property:P1142 ?g . { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } } } . FILTER ( ?z > ?r ) }
Communist Party of National Liberation
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 Communist Party of National Liberation
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?w WHERE { { ?w property:political_ideology ?x . ?w rdf:type ontology:political_party . ?x rdf:type ontology:special_field } UNION { ?w property:political_ideology ?x . ?x rdf:type ontology:ideology . ?w rdf:type ontology:political_party } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Communist_Party_of_National_Liberation property:political_ideology ?g . { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:special_field ) ( ontology:ideology ) } } } } . FILTER ( ?z > ?r ) }
[]
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 Q3307042
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?w WHERE { { ?w property:P1142 ?x . ?w rdf:type ontology:Q7278 . ?x rdf:type ontology:Q1047113 } UNION { ?w property:P1142 ?x . ?x rdf:type ontology:Q7257 . ?w rdf:type ontology:Q7278 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q3307042 property:P1142 ?g . { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } } } } . FILTER ( ?z > ?r ) }
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 Communist Party of National Liberation
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) ?w WHERE { { ?w property:political_ideology ?x . ?w rdf:type ontology:political_party . ?x rdf:type ontology:special_field } UNION { ?w property:political_ideology ?x . ?x rdf:type ontology:ideology . ?w rdf:type ontology:political_party } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Communist_Party_of_National_Liberation property:political_ideology ?g . { ?g rdf:type ?h . VALUES ( ?h ) { ( ontology:special_field ) ( ontology:ideology ) } } } } . FILTER ( ?z > ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2899
P47
Q515
USER
Which city has a shared border with Mülheim an der Ruhr ?
(Q2899,P47,c(Q515))
action filter_type
action find
entity Q2899
relation P47
type Q515
['Q2899', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q2899 property:P47 ?r . ?r rdf:type ontology:Q515 }
Mülheim an der Ruhr
action filter_type
action find
entity Mülheim an der Ruhr
relation shares border with
type city
['Mülheim an der Ruhr', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Mülheim_an_der_Ruhr property:shares_border_with ?r . ?r rdf:type ontology:city }
[]
city
Q2100
SYSTEM
Duisburg
Q2100
(Q2899,P47,c(Q515))
action filter_type
action find
entity Q2899
relation P47
type Q515
[ANSWER] has a shared border with Mülheim an der Ruhr
['Q2899', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q2899 property:P47 ?r . ?r rdf:type ontology:Q515 }
Duisburg
Duisburg has a shared border with Mülheim an der Ruhr
Duisburg
action filter_type
action find
entity Mülheim an der Ruhr
relation shares border with
type city
['Mülheim an der Ruhr', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Mülheim_an_der_Ruhr property:shares_border_with ?r . ?r rdf:type ontology:city }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q2899
Q15617994
USER
And which administrative territory?
(Q2899,P47,c(Q15617994))
action filter_type
action find
entity Q2899
relation P47
type Q15617994
['Q2899', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q2899 property:P47 ?q }
Mülheim an der Ruhr
action filter_type
action find
entity Mülheim an der Ruhr
relation shares border with
type designation for an administrative territorial entity
['Mülheim an der Ruhr', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mülheim_an_der_Ruhr property:shares_border_with ?q }
[]
designation for an administrative territorial entity
Q2838
SYSTEM
Oberhausen
Q2838
(Q2899,P47,c(Q15617994))
action filter_type
action find
entity Q2899
relation P47
type Q15617994
[ANSWER]
['Q2899', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q2899 property:P47 ?q }
Oberhausen
Oberhausen
action filter_type
action find
entity Mülheim an der Ruhr
relation shares border with
type designation for an administrative territorial entity
['Mülheim an der Ruhr', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mülheim_an_der_Ruhr property:shares_border_with ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2838 Q183
P17
Q1048835
USER
Is that administrative territory located in Germany ?
(Q2838,P17,Q183)
action is_in
entity Q183
action find
entity Q2838
relation P17
['Q2838', 'P17', 'Q183']
ASK WHERE { resource:Q2838 property:P17 resource:Q183 }
Oberhausen Germany
action is_in
entity Germany
action find
entity Oberhausen
relation country
['Oberhausen', 'country', 'Germany']
ASK WHERE { resource:Oberhausen property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q2838,P17,Q183)
action is_in
entity Q183
action find
entity Q2838
relation P17
[ANSWER]
['Q2838', 'P17', 'Q183']
ASK WHERE { resource:Q2838 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Oberhausen
relation country
['Oberhausen', 'country', 'Germany']
ASK WHERE { resource:Oberhausen property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2899 Q183 Q283318
P17
Q1048835
USER
Is Mülheim an der Ruhr present in Germany and Navalperal de Pinares ?
(Q2899,P17,Q183) (Q2899,P17,Q283318)
action is_in
entity Q2899
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q283318
relation P17
['Q2899', 'P17', 'Q183'] ['Q2899', 'P17', 'Q283318']
ASK WHERE { resource:Q2899 property:P17 resource:Q183 . resource:Q2899 property:P17 resource:Q283318 }
Mülheim an der Ruhr Germany Navalperal de Pinares
action is_in
entity Mülheim an der Ruhr
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Navalperal de Pinares
relation country
['Mülheim an der Ruhr', 'country', 'Germany'] ['Mülheim an der Ruhr', 'country', 'Navalperal de Pinares']
ASK WHERE { resource:Mülheim_an_der_Ruhr property:country resource:Germany . resource:Mülheim_an_der_Ruhr property:country resource:Navalperal_de_Pinares }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q2899,P17,Q183) (Q2899,P17,Q283318)
action is_in
entity Q2899
action intersection
action find_reverse
entity Q183
relation P17
action find_reverse
entity Q283318
relation P17
[ANSWER]
['Q2899', 'P17', 'Q183'] ['Q2899', 'P17', 'Q283318']
ASK WHERE { resource:Q2899 property:P17 resource:Q183 . resource:Q2899 property:P17 resource:Q283318 }
YES and NO respectively
action is_in
entity Mülheim an der Ruhr
action intersection
action find_reverse
entity Germany
relation country
action find_reverse
entity Navalperal de Pinares
relation country
['Mülheim an der Ruhr', 'country', 'Germany'] ['Mülheim an der Ruhr', 'country', 'Navalperal de Pinares']
ASK WHERE { resource:Mülheim_an_der_Ruhr property:country resource:Germany . resource:Mülheim_an_der_Ruhr property:country resource:Navalperal_de_Pinares }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q341085
P21 P102
Q502895
USER
Which people are the members of Czech Pirate Party and have male as the sex ?
AND((c(Q502895),P102,Q341085), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q341085
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q341085'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P102 resource:Q341085 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
male Czech Pirate Party
action filter_type
action intersection
action find_reverse
entity Czech Pirate Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Czech Pirate Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:member_of_political_party resource:Czech_Pirate_Party . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]
common name
Q17335199 Q1292951 Q12023718 Q18249673 Q13578296 Q1485198 Q17326826 Q24350967 Q11985472 Q6542380
SYSTEM
Kamil Horký, Ivan Bartoš, Jaroslav Achab Haidler, Tomáš Koláčný, Jakub Michálek, Marcel Kolaja, Vojtěch Pikal, Petr Třešňák, Václav Fořtík, Libor Michálek
Q17335199 Q1292951 Q12023718 Q18249673 Q13578296 Q1485198 Q17326826 Q24350967 Q11985472 Q6542380
AND((c(Q502895),P102,Q341085), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q341085
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are the members of Czech Pirate Party and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q341085'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?a WHERE { ?a property:P102 resource:Q341085 . ?a property:P21 resource:Q6581097 . ?a rdf:type ontology:Q502895 }
Kamil Horký Ivan Bartoš Jaroslav Achab Haidler Tomáš Koláčný Jakub Michálek Marcel Kolaja Vojtěch Pikal Petr Třešňák Václav Fořtík Libor Michálek
Kamil Horký, Ivan Bartoš, Jaroslav Achab Haidler, Tomáš Koláčný, Jakub Michálek, Marcel Kolaja, Vojtěch Pikal, Petr Třešňák, Václav Fořtík and Libor Michálek are the members of Czech Pirate Party and have male as the sex
Kamil Horký Ivan Bartoš Jaroslav Achab Haidler Tomáš Koláčný Jakub Michálek Marcel Kolaja Vojtěch Pikal Petr Třešňák Václav Fořtík Libor Michálek
action filter_type
action intersection
action find_reverse
entity Czech Pirate Party
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Czech Pirate Party'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?a WHERE { ?a property:member_of_political_party resource:Czech_Pirate_Party . ?a property:gender resource:male . ?a rdf:type ontology:common_name }
[]