Simple Question (Direct)
Simple Question
Q532675
P102
Q7278
USER
Which political party is Angela Grützmann a member of ?
(Q532675,P102,c(Q7278))
action filter_type
action find
entity Q532675
relation P102
type Q7278
['Q532675', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q532675 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Angela Grützmann
action filter_type
action find
entity Angela Grützmann
relation member of political party
type political party
['Angela Grützmann', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Angela_Grützmann property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q532675,P102,c(Q7278))
action filter_type
action find
entity Q532675
relation P102
type Q7278
Party [ANSWER] is Angela Grützmann a member of
['Q532675', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q532675 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Angela Grützmann a member of
Social Democratic Party of Germany
action filter_type
action find
entity Angela Grützmann
relation member of political party
type political party
['Angela Grützmann', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Angela_Grützmann property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q532675
P937
Q56061
USER
Which is the work location of that person ?
(Q49768,P937,c(Q56061))
action filter_type
action find
entity Q532675
relation P937
type Q56061
['Q49768', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q532675 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Angela Grützmann
action filter_type
action find
entity Angela Grützmann
relation work location
type administrative territorial entity
['Social Democratic Party of Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Angela_Grützmann property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q49768,P937,c(Q56061))
action filter_type
action find
entity Q532675
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q49768', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q532675 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Bonn
The work location of that person is in Bonn
Bonn
action filter_type
action find
entity Angela Grützmann
relation work location
type administrative territorial entity
['Social Democratic Party of Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Angela_Grützmann property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q586 Q16732804
P937
Q502895
USER
Does Michael Jay Moon work at that administrative territory ?
(Q16732804,P937,Q586)
action is_in
entity Q16732804
action find
entity Q586
relation P937
['Q16732804', 'P937', 'Q586']
ASK WHERE { resource:Q586 property:P937 resource:Q16732804 }
Bonn Michael Jay Moon
action is_in
entity Michael Jay Moon
action find
entity Bonn
relation work location
['Michael Jay Moon', 'work location', 'Bonn']
ASK WHERE { resource:Bonn property:work_location resource:Michael_Jay_Moon }
[]
common name
SYSTEM
NO
(Q16732804,P937,Q586)
action is_in
entity Q16732804
action find
entity Q586
relation P937
[ANSWER]
['Q16732804', 'P937', 'Q586']
ASK WHERE { resource:Q586 property:P937 resource:Q16732804 }
No
action is_in
entity Michael Jay Moon
action find
entity Bonn
relation work location
['Michael Jay Moon', 'work location', 'Bonn']
ASK WHERE { resource:Bonn property:work_location resource:Michael_Jay_Moon }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1371095 Q532675
P27
Q1048835
USER
Which political territories are the native countriesof Angela Grützmann and Karl Agricola ?
AND((Q532675,P27,c(Q1048835)), (Q1371095,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q532675
relation P27
action find
entity Q1371095
relation P27
type Q1048835
{'AND': [['Q532675', 'P27', {'concept': 'Q1048835'}], ['Q1371095', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { resource:Q532675 property:P27 ?l . resource:Q1371095 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Karl Agricola Angela Grützmann
action filter_type
action intersection
action find
entity Angela Grützmann
relation country of citizenship
action find
entity Karl Agricola
relation country of citizenship
type political territorial entity
{'AND': [['Angela Grützmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Karl Agricola', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Angela_Grützmann property:country_of_citizenship ?l . resource:Karl_Agricola property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q532675,P27,c(Q1048835)), (Q1371095,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q532675
relation P27
action find
entity Q1371095
relation P27
type Q1048835
[ANSWER] is the native countriesof Angela Grützmann and Karl Agricola
{'AND': [['Q532675', 'P27', {'concept': 'Q1048835'}], ['Q1371095', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { resource:Q532675 property:P27 ?l . resource:Q1371095 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Germany
Germany is the native countriesof Angela Grützmann and Karl Agricola
Germany
action filter_type
action intersection
action find
entity Angela Grützmann
relation country of citizenship
action find
entity Karl Agricola
relation country of citizenship
type political territorial entity
{'AND': [['Angela Grützmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Karl Agricola', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Angela_Grützmann property:country_of_citizenship ?l . resource:Karl_Agricola property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q933500
P27
Q502895
USER
Is Leonardo Occhipinti a native of that political territory ?
(Q933500,P27,Q183)
action is_in
entity Q933500
action find
entity Q183
relation P27
['Q933500', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q933500 }
Germany Leonardo Occhipinti
action is_in
entity Leonardo Occhipinti
action find
entity Germany
relation country of citizenship
['Leonardo Occhipinti', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Leonardo_Occhipinti }
[]
common name
SYSTEM
NO
(Q933500,P27,Q183)
action is_in
entity Q933500
action find
entity Q183
relation P27
[ANSWER]
['Q933500', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q933500 }
No
action is_in
entity Leonardo Occhipinti
action find
entity Germany
relation country of citizenship
['Leonardo Occhipinti', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Leonardo_Occhipinti }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q49768 Q57465
P488
Q502895
USER
Was Kurt Schumacher the chairperson of Social Democratic Party of Germany ?
(Q49768,P488,Q57465)
action is_in
entity Q57465
action find
entity Q49768
relation P488
['Q49768', 'P488', 'Q57465']
ASK WHERE { resource:Q49768 property:P488 resource:Q57465 }
Social Democratic Party of Germany Kurt Schumacher
action is_in
entity Kurt Schumacher
action find
entity Social Democratic Party of Germany
relation chairperson
['Social Democratic Party of Germany', 'chairperson', 'Kurt Schumacher']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:chairperson resource:Kurt_Schumacher }
[]
common name
SYSTEM
YES
(Q49768,P488,Q57465)
action is_in
entity Q57465
action find
entity Q49768
relation P488
[ANSWER]
['Q49768', 'P488', 'Q57465']
ASK WHERE { resource:Q49768 property:P488 resource:Q57465 }
Yes
action is_in
entity Kurt Schumacher
action find
entity Social Democratic Party of Germany
relation chairperson
['Social Democratic Party of Germany', 'chairperson', 'Kurt Schumacher']
ASK WHERE { resource:Social_Democratic_Party_of_Germany property:chairperson resource:Kurt_Schumacher }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q49768
P463
Q79913 Q7278
USER
How many non-governmental organizations or political parties were Social Democratic Party of Germany a member of ?
(Q49768,P463,c(Q79913)) (Q49768,P463,c(Q7278))
action count
action union
action filter_type
action find
entity Q49768
relation P463
type Q79913
action filter_type
action find
entity Q49768
relation P463
type Q7278
['Q49768', 'P463', {'concept': 'Q79913'}] ['Q49768', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { { resource:Q49768 property:P463 ?x . ?x rdf:type ontology:Q79913 } UNION { resource:Q49768 property:P463 ?x . ?x rdf:type ontology:Q7278 } }
Social Democratic Party of Germany
action count
action union
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type non-governmental organization
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political party
['Social Democratic Party of Germany', 'member of', {'concept': 'non-governmental organization'}] ['Social Democratic Party of Germany', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { { resource:Social_Democratic_Party_of_Germany property:member_of ?x . ?x rdf:type ontology:non-governmental_organization } UNION { resource:Social_Democratic_Party_of_Germany property:member_of ?x . ?x rdf:type ontology:political_party } }
[]
non-governmental organization political party
SYSTEM
2
Q220945 Q537395
(Q49768,P463,c(Q79913)) (Q49768,P463,c(Q7278))
action count
action union
action filter_type
action find
entity Q49768
relation P463
type Q79913
action filter_type
action find
entity Q49768
relation P463
type Q7278
[ANSWER]
['Q49768', 'P463', {'concept': 'Q79913'}] ['Q49768', 'P463', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { { resource:Q49768 property:P463 ?x . ?x rdf:type ontology:Q79913 } UNION { resource:Q49768 property:P463 ?x . ?x rdf:type ontology:Q7278 } }
Party of European Socialists European Movement Germany
2
action count
action union
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type non-governmental organization
action filter_type
action find
entity Social Democratic Party of Germany
relation member of
type political party
['Social Democratic Party of Germany', 'member of', {'concept': 'non-governmental organization'}] ['Social Democratic Party of Germany', 'member of', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { { resource:Social_Democratic_Party_of_Germany property:member_of ?x . ?x rdf:type ontology:non-governmental_organization } UNION { resource:Social_Democratic_Party_of_Germany property:member_of ?x . ?x rdf:type ontology:political_party } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q617261
P1142
Q1047113 Q7257 Q7278
USER
How many political parties have more number of special fields and ideologies as their political ideology than Political Party of Radicals ?
(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 Q617261
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?n ) WHERE { { ?x property:P1142 ?z . ?x rdf:type ontology:Q7278 . ?z rdf:type ontology:Q1047113 } UNION { ?x property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?x rdf:type ontology:Q7278 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q617261 property:P1142 ?c . { VALUES ( ?l ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?c rdf:type ?l } } } . FILTER ( ?n > ?t ) }
Political Party of Radicals
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 Political Party of Radicals
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?n ) WHERE { { ?x property:political_ideology ?z . ?x rdf:type ontology:political_party . ?z rdf:type ontology:special_field } UNION { ?x property:political_ideology ?z . ?z rdf:type ontology:ideology . ?x rdf:type ontology:political_party } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Political_Party_of_Radicals property:political_ideology ?c . { VALUES ( ?l ) { ( ontology:special_field ) ( ontology:ideology ) } . ?c rdf:type ?l } } } . FILTER ( ?n > ?t ) }
[]
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 Q617261
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?n ) WHERE { { ?x property:P1142 ?z . ?x rdf:type ontology:Q7278 . ?z rdf:type ontology:Q1047113 } UNION { ?x property:P1142 ?z . ?z rdf:type ontology:Q7257 . ?x rdf:type ontology:Q7278 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Q617261 property:P1142 ?c . { VALUES ( ?l ) { ( ontology:Q1047113 ) ( ontology:Q7257 ) } . ?c rdf:type ?l } } } . FILTER ( ?n > ?t ) }
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 Political Party of Radicals
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?n ) WHERE { { ?x property:political_ideology ?z . ?x rdf:type ontology:political_party . ?z rdf:type ontology:special_field } UNION { ?x property:political_ideology ?z . ?z rdf:type ontology:ideology . ?x rdf:type ontology:political_party } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { resource:Political_Party_of_Radicals property:political_ideology ?c . { VALUES ( ?l ) { ( ontology:special_field ) ( ontology:ideology ) } . ?c rdf:type ?l } } } . FILTER ( ?n > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3499324
P1142
Q1047113 Q7257 Q7278
USER
And also tell me about 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 Q3499324
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q3499324 property:P1142 ?z . { VALUES ( ?r ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?z rdf:type ?r } } } . FILTER ( ?u > ?k ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?u ) WHERE { { ?w property:P1142 ?e . ?w rdf:type ontology:Q7278 . ?e rdf:type ontology:Q7257 } UNION { ?w rdf:type ontology:Q7278 . ?e rdf:type ontology:Q1047113 . ?w property:P1142 ?e } } GROUP BY ?w } }
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 Green Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Green_Party property:political_ideology ?z . { VALUES ( ?r ) { ( ontology:ideology ) ( ontology:special_field ) } . ?z rdf:type ?r } } } . FILTER ( ?u > ?k ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?u ) WHERE { { ?w property:political_ideology ?e . ?w rdf:type ontology:political_party . ?e rdf:type ontology:ideology } UNION { ?w rdf:type ontology:political_party . ?e rdf:type ontology:special_field . ?w property:political_ideology ?e } } GROUP BY ?w } }
[]
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 Q3499324
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Q3499324 property:P1142 ?z . { VALUES ( ?r ) { ( ontology:Q7257 ) ( ontology:Q1047113 ) } . ?z rdf:type ?r } } } . FILTER ( ?u > ?k ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?u ) WHERE { { ?w property:P1142 ?e . ?w rdf:type ontology:Q7278 . ?e rdf:type ontology:Q7257 } UNION { ?w rdf:type ontology:Q7278 . ?e rdf:type ontology:Q1047113 . ?w property:P1142 ?e } } GROUP BY ?w } }
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 Green Party
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { resource:Green_Party property:political_ideology ?z . { VALUES ( ?r ) { ( ontology:ideology ) ( ontology:special_field ) } . ?z rdf:type ?r } } } . FILTER ( ?u > ?k ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?u ) WHERE { { ?w property:political_ideology ?e . ?w rdf:type ontology:political_party . ?e rdf:type ontology:ideology } UNION { ?w rdf:type ontology:political_party . ?e rdf:type ontology:special_field . ?w property:political_ideology ?e } } GROUP BY ?w } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P127
Q79007
USER
Which streets belongs to Germany ?
(c(Q79007),P127,Q183)
action filter_type
action find_reverse
entity Q183
relation P127
type Q79007
[{'concept': 'Q79007'}, 'P127', 'Q183']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q183 . ?z rdf:type ontology:Q79007 }
Germany
action filter_type
action find_reverse
entity Germany
relation owned by
type street
[{'concept': 'street'}, 'owned by', 'Germany']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Germany . ?z rdf:type ontology:street }
[]
street
Q34444 Q52720 Q52722
SYSTEM
Bundesstraße 3, Bundesstraße 73, Bundesstraße 75
Q52780 Q52783 Q52782 Q52784 Q52787 Q52786 Q52789 Q52788 Q34559 Q34556 Q34553 Q52709 Q52708 Q52705 Q52707 Q34495 Q1006769 Q34492 Q34498 Q1007052 Q47979 Q47973 Q1007274 Q34549 Q34548 Q52730 Q52731 Q52732 Q34541 Q52738 Q34546 Q34544 Q1006969 Q47981 Q1006806 Q1007281 Q52792 Q52723 Q52722 Q52721 Q52720 Q52727 Q52725 Q52724 Q52729 Q34438 Q1006799 Q34538 Q34536 Q52734 Q34532 Q34530 Q52799 Q34441 Q34446 Q34444 Q47993 Q34472 Q52757 Q52754 Q52755 Q1006941 Q52753 Q52751 Q34525 Q1006786 Q34520 Q52758 Q52759 Q47963 Q47960 Q47968 Q34450 Q34452 Q319795 Q34454 Q34456 Q34459 Q47987 Q52745 Q52744 Q52746 Q52741 Q52740 Q52742 Q34513 Q52749 Q52748 Q34522 Q52756 Q1007034 Q1006994 Q1007137 Q34506 Q34468 Q34502 Q34501 Q34465 Q34462 Q52770 Q52771 Q52772 Q52774 Q52775 Q52776 Q52778 Q52779 Q34571 Q34573 Q34478 Q52808 Q52809 Q52806 Q52807 Q52804 Q34470 Q52802 Q34476 Q52800 Q52801 Q52805 Q52769 Q52768 Q52767 Q52766 Q52765 Q52764 Q52763 Q52762 Q52761 Q52760 Q1007296 Q52793 Q52790 Q52796 Q52797 Q52794 Q52795 Q52798 Q47955 Q1007298 Q34563 Q34566 Q2769393 Q52811 Q52810 Q52812 Q34507 Q52718 Q52736 Q52712 Q52713 Q52710 Q52711 Q52716 Q52717 Q52715 Q34484 Q34482 Q34480 Q34488 Q34489
(c(Q79007),P127,Q183)
action filter_type
action find_reverse
entity Q183
relation P127
type Q79007
[ANSWERS] belong to Germany
[{'concept': 'Q79007'}, 'P127', 'Q183']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q183 . ?z rdf:type ontology:Q79007 }
Bundesstraße 170 Bundesstraße 172 Bundesstraße 171 Bundesstraße 173 Bundesstraße 175 Bundesstraße 174 Bundesstraße 178 Bundesstraße 176 Bundesstraße 45 Bundesstraße 44 Bundesstraße 43 Bundesstraße 64 Bundesstraße 63 Bundesstraße 61 Bundesstraße 62 Bundesstraße 23 Bundesstraße 11a Bundesstraße 22 Bundesstraße 25 Bundesstraße 38a Bundesstraße 56 Bundesstraße 55 Bundesstroß 55a Bundesstraße 42 Bundesstraße 41 Bundesstraße 82 Bundesstraße 83 Bundesstraße 84 Bundesstraße 38 Bundesstraße 87 Bundesstraße 40 Bundesstraße 39 Bundesstraße 27a Bundesstraße 57 Bundesstraße 187a Bundesstraße 66n Bundesstraße 180 Bundesstraße 76 Bundesstraße 75 Bundesstraße 74 Bundesstraße 73 Bundesstraße 80 Bundesstraße 79 Bundesstraße 77 Bundesstraße 81 Bundesstraße 1 Bundesstraße 183a Bundesstraße 37 Bundesstraße 36 Bundesstraße 85 Bundesstraße 35 Bundesstraße 34 Bundesstraße 187 Bundesstraße 2 Bundesstraße 4 Bundesstraße 3 Bundesstraße 59 Bundesstraße 13 Bundesstraße 101 Bundesstraße 98 Bundesstraße 99 Bundesstraße 26a Bundesstraße 97 Bundesstraße 96 Bundesstraße 33 Bundesstraße 172a Bundesstraße 31 Bundesstraße 102 Bundesstraße 103 Bundesstraße 53 Bundesstraße 52 Bundesstraße 54 Bundesstraße 4 R Bundesstraße 5 Bundesstraße 2 R Bundesstraße 6 Bundesstraße 7 Bundesstraße 8 Bundesstraße 58 Bundesstraße 92 Bundesstraße 91 Bundesstraße 93 Bundesstraße 89 Bundesstraße 88 Bundesstraße 90 Bundesstraße 30 Bundesstraße 95 Bundesstraße 94 Bundesstraße 32 Bundesstraße 100 Bundesstraße 31a Bundesstraße 28a Bundesstraße 43a Bundesstraße 28 Bundesstraße 11 Bundesstraße 27 Bundesstraße 26 Bundesstraße 10 Bundesstraße 9 Bundesstraße 113 Bundesstraße 122 Bundesstraße 156 Bundesstraße 158 Bundesstraße 166 Bundesstraße 167 Bundesstraße 168 Bundesstraße 169 Bundesstraße 49 Bundesstraße 50 Bundesstraße 15 Bundesstraße 195 Bundesstraße 196 Bundesstraße 193 Bundesstraße 194 Bundesstraße 191 Bundesstraße 12 Bundesstraße 190 Bundesstraße 14 Bundesstraße 188 Bundesstraße 189 Bundesstraße 192 Bundesstraße 115 Bundesstraße 112 Bundesstraße 111 Bundesstraße 110 Bundesstraße 109 Bundesstraße 108 Bundesstraße 107 Bundesstraße 106 Bundesstraße 105 Bundesstraße 104 Bundesstraße 96b Bundesstraße 181 Bundesstraße 179 Bundesstraße 184 Bundesstraße 185 Bundesstraße 182 Bundesstraße 183 Bundesstraße 186 Bundesstraße 51 Bundesstraße 96a Bundesstraße 47 Bundesstraße 48 Bundesstraße 33a Bundesstraße 198 Bundesstraße 197 Bundesstraße 199 Bundesstraße 29 Bundesstraße 72 Bundesstraße 86 Bundesstraße 67 Bundesstraße 68 Bundesstraße 65 Bundesstraße 66 Bundesstraße 70 Bundesstraße 71 Bundesstraße 69 Bundesstraße 19 Bundesstraße 17 Bundesstraße 16 Bundesstraße 20 Bundesstraße 21
Bundesstraße 3, Bundesstraße 73 and Bundesstraße 75 belong to Germany
Bundesstraße 3 Bundesstraße 73 Bundesstraße 75
action filter_type
action find_reverse
entity Germany
relation owned by
type street
[{'concept': 'street'}, 'owned by', 'Germany']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Germany . ?z rdf:type ontology:street }
[]
Clarification
Simple Question|Single Entity|Indirect
Q52722
P126
Q192350
USER
Who was responsible for maintaining that street ?
(Q52722,P126,c(Q192350))
action filter_type
action find
entity Q52722
relation P126
type Q192350
['Q52722', 'P126', {'concept': 'Q192350'}]
SELECT DISTINCT ?h WHERE { resource:Q52722 property:P126 ?h . ?h rdf:type ontology:Q192350 }
Bundesstraße 75
action filter_type
action find
entity Bundesstraße 75
relation maintained by
type ministry
['Bundesstraße 75', 'maintained by', {'concept': 'ministry'}]
SELECT DISTINCT ?h WHERE { resource:Bundesstraße_75 property:maintained_by ?h . ?h rdf:type ontology:ministry }
[]
ministry
Clarification for simple ques.
Q52722
SYSTEM
Did you mean Bundesstraße 75 ?
Q34444 Q52720 Q52722
(Q34444,P126,c(Q192350)) (Q52720,P126,c(Q192350)) (Q52722,P126,c(Q192350))
[ANSWER]
['Q34444', 'P126', {'concept': 'Q192350'}] ['Q52720', 'P126', {'concept': 'Q192350'}] ['Q52722', 'P126', {'concept': 'Q192350'}]
SELECT DISTINCT ?h WHERE { resource:Q52722 property:P126 ?h . ?h rdf:type ontology:Q192350 }
Bundesstraße 3 Bundesstraße 73 Bundesstraße 75
Did you mean Bundesstraße 75 ?
Bundesstraße 75
['Bundesstraße 3', 'maintained by', {'concept': 'ministry'}] ['Bundesstraße 73', 'maintained by', {'concept': 'ministry'}] ['Bundesstraße 75', 'maintained by', {'concept': 'ministry'}]
SELECT DISTINCT ?h WHERE { resource:Bundesstraße_75 property:maintained_by ?h . ?h rdf:type ontology:ministry }
[]
Simple Question (Coreferenced)
USER
Yes
(Q52722,P126,c(Q192350))
['Q52722', 'P126', {'concept': 'Q192350'}]
['Bundesstraße 75', 'maintained by', {'concept': 'ministry'}]
[]
Q491637
SYSTEM
Federal Ministry of Transport and Digital Infrastructure
Q491637
(Q52722,P126,c(Q192350))
action filter_type
action find
entity Q52722
relation P126
type Q192350
[ANSWER] was responsible for maintaining that street
['Q52722', 'P126', {'concept': 'Q192350'}]
SELECT DISTINCT ?h WHERE { resource:Q52722 property:P126 ?h . ?h rdf:type ontology:Q192350 }
Federal Ministry of Transport and Digital Infrastructure
Federal Ministry of Transport and Digital Infrastructure was responsible for maintaining that street
Federal Ministry of Transport and Digital Infrastructure
action filter_type
action find
entity Bundesstraße 75
relation maintained by
type ministry
['Bundesstraße 75', 'maintained by', {'concept': 'ministry'}]
SELECT DISTINCT ?h WHERE { resource:Bundesstraße_75 property:maintained_by ?h . ?h rdf:type ontology:ministry }
[]