Simple Question (Direct)
Simple Question
Q1036502
P21
Q290
USER
What is the sex of Carl-Heinz Janson ?
(Q1036502,P21,c(Q290))
action filter_type
action find
entity Q1036502
relation P21
type Q290
['Q1036502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1036502 property:P21 ?b . ?b rdf:type ontology:Q290 }
Carl-Heinz Janson
action filter_type
action find
entity Carl-Heinz Janson
relation gender
type sex
['Carl-Heinz Janson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Carl-Heinz_Janson property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1036502,P21,c(Q290))
action filter_type
action find
entity Q1036502
relation P21
type Q290
The sex of Carl-Heinz Janson is the [ANSWER]
['Q1036502', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1036502 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Carl-Heinz Janson is the male
male
action filter_type
action find
entity Carl-Heinz Janson
relation gender
type sex
['Carl-Heinz Janson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Carl-Heinz_Janson property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1036502
P102
Q7278
USER
Which political party is that person a member of ?
(Q6581097,P102,c(Q7278))
action filter_type
action find
entity Q1036502
relation P102
type Q7278
['Q6581097', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { resource:Q1036502 property:P102 ?h . ?h rdf:type ontology:Q7278 }
Carl-Heinz Janson
action filter_type
action find
entity Carl-Heinz Janson
relation member of political party
type political party
['male', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { resource:Carl-Heinz_Janson property:member_of_political_party ?h . ?h rdf:type ontology:political_party }
[]
political party
Q49750
SYSTEM
Socialist Unity Party of Germany
Q49750
(Q6581097,P102,c(Q7278))
action filter_type
action find
entity Q1036502
relation P102
type Q7278
The [ANSWER] is that person a member of
['Q6581097', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?h WHERE { resource:Q1036502 property:P102 ?h . ?h rdf:type ontology:Q7278 }
Socialist Unity Party of Germany
The Socialist Unity Party of Germany is that person a member of
Socialist Unity Party of Germany
action filter_type
action find
entity Carl-Heinz Janson
relation member of political party
type political party
['male', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?h WHERE { resource:Carl-Heinz_Janson property:member_of_political_party ?h . ?h rdf:type ontology:political_party }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1142
Q1047113 Q7278
USER
How many political parties promote more number of special fields than that political party ?
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q1047113
type Q7278
action count
action filter_type
action find
entity Q49750
relation P1142
type Q1047113
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?f ) WHERE { ?c property:P1142 ?s . ?s rdf:type ontology:Q7278 . ?c rdf:type ontology:Q1047113 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:Q1047113 . resource:Q49750 property:P1142 ?e } } . FILTER ( ?f > ?o ) }
action count
action greater
action find_tuple_counts
relation political ideology
type special field
type political party
action count
action filter_type
action find
entity Socialist Unity Party of Germany
relation political ideology
type special field
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?f ) WHERE { ?c property:political_ideology ?s . ?s rdf:type ontology:political_party . ?c rdf:type ontology:special_field } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:special_field . resource:Socialist_Unity_Party_of_Germany property:political_ideology ?e } } . FILTER ( ?f > ?o ) }
[]
special field political party
SYSTEM
0
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q1047113
type Q7278
action count
action filter_type
action find
entity Q49750
relation P1142
type Q1047113
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?f ) WHERE { ?c property:P1142 ?s . ?s rdf:type ontology:Q7278 . ?c rdf:type ontology:Q1047113 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:Q1047113 . resource:Q49750 property:P1142 ?e } } . FILTER ( ?f > ?o ) }
0
action count
action greater
action find_tuple_counts
relation political ideology
type special field
type political party
action count
action filter_type
action find
entity Socialist Unity Party of Germany
relation political ideology
type special field
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?f ) WHERE { ?c property:political_ideology ?s . ?s rdf:type ontology:political_party . ?c rdf:type ontology:special_field } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { ?e rdf:type ontology:special_field . resource:Socialist_Unity_Party_of_Germany property:political_ideology ?e } } . FILTER ( ?f > ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13542995 Q1036502
P19 P17
Q15617994
USER
Which administrative territories were Carl-Heinz Janson born in or are Trenceng present in ?
OR((Q1036502,P19,c(Q15617994)), (Q13542995,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1036502
relation P19
action find
entity Q13542995
relation P17
type Q15617994
{'OR': [['Q1036502', 'P19', {'concept': 'Q15617994'}], ['Q13542995', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q1036502 property:P19 ?r } UNION { resource:Q13542995 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Trenceng Carl-Heinz Janson
action filter_type
action union
action find
entity Carl-Heinz Janson
relation place of birth
action find
entity Trenceng
relation country
type designation for an administrative territorial entity
{'OR': [['Carl-Heinz Janson', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Trenceng', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Carl-Heinz_Janson property:place_of_birth ?r } UNION { resource:Trenceng property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252 Q506743
SYSTEM
Indonesia, Waltershausen
Q252 Q506743
OR((Q1036502,P19,c(Q15617994)), (Q13542995,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1036502
relation P19
action find
entity Q13542995
relation P17
type Q15617994
Carl-Heinz Janson were born in [ANSWERS] or are Trenceng present in
{'OR': [['Q1036502', 'P19', {'concept': 'Q15617994'}], ['Q13542995', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q1036502 property:P19 ?r } UNION { resource:Q13542995 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Indonesia Waltershausen
Carl-Heinz Janson were born in Indonesia and Waltershausen or are Trenceng present in
Indonesia Waltershausen
action filter_type
action union
action find
entity Carl-Heinz Janson
relation place of birth
action find
entity Trenceng
relation country
type designation for an administrative territorial entity
{'OR': [['Carl-Heinz Janson', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Trenceng', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Carl-Heinz_Janson property:place_of_birth ?r } UNION { resource:Trenceng property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q1047113 Q7257 Q7278
USER
Which political parties have the ideology as atleast 1 special fields or ideologies ?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action atleast
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
value 1
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?g WHERE { { ?g property:P1142 ?l . ?g rdf:type ontology:Q7278 . ?l rdf:type ontology:Q1047113 } UNION { ?g property:P1142 ?l . ?g rdf:type ontology:Q7278 . ?l rdf:type ontology:Q7257 } } GROUP BY ?g } . FILTER ( ?z >= 1 ) }
action atleast
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
value 1
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?g WHERE { { ?g property:political_ideology ?l . ?g rdf:type ontology:political_party . ?l rdf:type ontology:special_field } UNION { ?g property:political_ideology ?l . ?g rdf:type ontology:political_party . ?l rdf:type ontology:ideology } } GROUP BY ?g } . FILTER ( ?z >= 1 ) }
[]
special field ideology political party
Q49766 Q196695 Q49768
SYSTEM
Alliance '90/The Greens, Green League, Social Democratic Party of Germany
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 atleast
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
value 1
[ANSWERS] have the ideology as atleast 1 special fields or ideologies
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?g WHERE { { ?g property:P1142 ?l . ?g rdf:type ontology:Q7278 . ?l rdf:type ontology:Q1047113 } UNION { ?g property:P1142 ?l . ?g rdf:type ontology:Q7278 . ?l rdf:type ontology:Q7257 } } GROUP BY ?g } . FILTER ( ?z >= 1 ) }
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
Alliance '90/The Greens, Green League and Social Democratic Party of Germany have the ideology as atleast 1 special fields or ideologies
Alliance '90/The Greens Green League Social Democratic Party of Germany
action atleast
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
value 1
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?z ) ?g WHERE { { ?g property:political_ideology ?l . ?g rdf:type ontology:political_party . ?l rdf:type ontology:special_field } UNION { ?g property:political_ideology ?l . ?g rdf:type ontology:political_party . ?l rdf:type ontology:ideology } } GROUP BY ?g } . FILTER ( ?z >= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q49768
P462
Q1075
USER
Which color is that political party associated with ?
(Q49768,P462,c(Q1075))
action filter_type
action find
entity Q49768
relation P462
type Q1075
['Q49768', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?o WHERE { resource:Q49768 property:P462 ?o . ?o rdf:type ontology:Q1075 }
Social Democratic Party of Germany
action filter_type
action find
entity Social Democratic Party of Germany
relation color
type color
['Social Democratic Party of Germany', 'color', {'concept': 'color'}]
SELECT DISTINCT ?o WHERE { resource:Social_Democratic_Party_of_Germany property:color ?o . ?o rdf:type ontology:color }
[]
color
Clarification for simple ques.
Q196695
SYSTEM
Did you mean Green League ?
Q49766 Q196695 Q49768
(Q49766,P462,c(Q1075)) (Q196695,P462,c(Q1075)) (Q49768,P462,c(Q1075))
[ANSWER]
['Q49766', 'P462', {'concept': 'Q1075'}] ['Q196695', 'P462', {'concept': 'Q1075'}] ['Q49768', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?o WHERE { resource:Q49768 property:P462 ?o . ?o rdf:type ontology:Q1075 }
Alliance '90/The Greens Green League Social Democratic Party of Germany
Did you mean Green League ?
Green League
["Alliance '90/The Greens", 'color', {'concept': 'color'}] ['Green League', 'color', {'concept': 'color'}] ['Social Democratic Party of Germany', 'color', {'concept': 'color'}]
SELECT DISTINCT ?o WHERE { resource:Social_Democratic_Party_of_Germany property:color ?o . ?o rdf:type ontology:color }
[]
Simple Question (Coreferenced)
USER
No, I meant Social Democratic Party of Germany. Could you tell me the answer for that?
(Q49768,P462,c(Q1075))
Q49768
['Q49768', 'P462', {'concept': 'Q1075'}]
['Social Democratic Party of Germany', 'color', {'concept': 'color'}]
[]
Q3142
SYSTEM
red
Q3142
(Q49768,P462,c(Q1075))
action filter_type
action find
entity Q49768
relation P462
type Q1075
That political party is associated with [ANSWER]
['Q49768', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?o WHERE { resource:Q49768 property:P462 ?o . ?o rdf:type ontology:Q1075 }
red
That political party is associated with red
red
action filter_type
action find
entity Social Democratic Party of Germany
relation color
type color
['Social Democratic Party of Germany', 'color', {'concept': 'color'}]
SELECT DISTINCT ?o WHERE { resource:Social_Democratic_Party_of_Germany property:color ?o . ?o rdf:type ontology:color }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q49768
P361
Q15911314 Q43229
USER
How many associations and organizations are a portion of Social Democratic Party of Germany ?
(c(Q15911314),P361,Q49768) (c(Q43229),P361,Q49768)
action count
action union
action filter_type
action find_reverse
entity Q49768
relation P361
type Q15911314
action filter_type
action find_reverse
entity Q49768
relation P361
type Q43229
[{'concept': 'Q15911314'}, 'P361', 'Q49768'] [{'concept': 'Q43229'}, 'P361', 'Q49768']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?d ) { ( ontology:Q15911314 ) ( ontology:Q43229 ) } . ?x rdf:type ?d }
Social Democratic Party of Germany
action count
action union
action filter_type
action find_reverse
entity Social Democratic Party of Germany
relation part of
type association
action filter_type
action find_reverse
entity Social Democratic Party of Germany
relation part of
type organization
[{'concept': 'association'}, 'part of', 'Social Democratic Party of Germany'] [{'concept': 'organization'}, 'part of', 'Social Democratic Party of Germany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?d ) { ( ontology:association ) ( ontology:organization ) } . ?x rdf:type ?d }
[]
association organization
SYSTEM
3 associations and 1 organizations
Q2207550 Q2207521 Q2207545 Q690370
(c(Q15911314),P361,Q49768) (c(Q43229),P361,Q49768)
action count
action union
action filter_type
action find_reverse
entity Q49768
relation P361
type Q15911314
action filter_type
action find_reverse
entity Q49768
relation P361
type Q43229
[ANSWER]
[{'concept': 'Q15911314'}, 'P361', 'Q49768'] [{'concept': 'Q43229'}, 'P361', 'Q49768']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?d ) { ( ontology:Q15911314 ) ( ontology:Q43229 ) } . ?x rdf:type ?d }
SPD North Rhine-Westphalia SPD Berlin SPD Sachsen Young Socialists in the SPD
3 associations and 1 organizations
action count
action union
action filter_type
action find_reverse
entity Social Democratic Party of Germany
relation part of
type association
action filter_type
action find_reverse
entity Social Democratic Party of Germany
relation part of
type organization
[{'concept': 'association'}, 'part of', 'Social Democratic Party of Germany'] [{'concept': 'organization'}, 'part of', 'Social Democratic Party of Germany']
SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?d ) { ( ontology:association ) ( ontology:organization ) } . ?x rdf:type ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49768
P159
Q41176
USER
Where is the head office for that political party located ?
action filter_type
action find
entity Q49768
relation P159
type Q41176
SELECT DISTINCT ?o WHERE { resource:Q49768 property:P159 ?o . ?o rdf:type ontology:Q41176 }
Social Democratic Party of Germany
action filter_type
action find
entity Social Democratic Party of Germany
relation headquarters location
type building
SELECT DISTINCT ?o WHERE { resource:Social_Democratic_Party_of_Germany property:headquarters_location ?o . ?o rdf:type ontology:building }
[]
building
Q878763
SYSTEM
Willy-Brandt-Haus
Q878763
action filter_type
action find
entity Q49768
relation P159
type Q41176
The head office for that political party is located in [ANSWER]
SELECT DISTINCT ?o WHERE { resource:Q49768 property:P159 ?o . ?o rdf:type ontology:Q41176 }
Willy-Brandt-Haus
The head office for that political party is located in Willy-Brandt-Haus
Willy-Brandt-Haus
action filter_type
action find
entity Social Democratic Party of Germany
relation headquarters location
type building
SELECT DISTINCT ?o WHERE { resource:Social_Democratic_Party_of_Germany property:headquarters_location ?o . ?o rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P138
Q502895
USER
How many people are namesakes of that building ?
(Q878763,P138,c(Q502895))
action count
action filter_type
action find
entity Q878763
relation P138
type Q502895
['Q878763', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q878763 property:P138 ?h . ?h rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Willy-Brandt-Haus
relation named after
type common name
['Willy-Brandt-Haus', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Willy-Brandt-Haus property:named_after ?h . ?h rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q2514
(Q878763,P138,c(Q502895))
action count
action filter_type
action find
entity Q878763
relation P138
type Q502895
[ANSWER]
['Q878763', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Q878763 property:P138 ?h . ?h rdf:type ontology:Q502895 }
Willy Brandt
1
action count
action filter_type
action find
entity Willy-Brandt-Haus
relation named after
type common name
['Willy-Brandt-Haus', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { resource:Willy-Brandt-Haus property:named_after ?h . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1142
Q7257 Q1047113 Q7278
USER
How many political parties have the ideology as exactly 4 ideologies or special fields ?
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action count
action equal
action union
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
value 4
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { FILTER ( ?f = 4 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?f ) WHERE { { ?m property:P1142 ?d . ?m rdf:type ontology:Q7278 . ?d rdf:type ontology:Q7257 } UNION { ?m property:P1142 ?d . ?m rdf:type ontology:Q7278 . ?d rdf:type ontology:Q1047113 } } GROUP BY ?m } }
action count
action equal
action union
action find_tuple_counts
relation political ideology
type political party
type ideology
action find_tuple_counts
relation political ideology
type political party
type special field
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { FILTER ( ?f = 4 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?f ) WHERE { { ?m property:political_ideology ?d . ?m rdf:type ontology:political_party . ?d rdf:type ontology:ideology } UNION { ?m property:political_ideology ?d . ?m rdf:type ontology:political_party . ?d rdf:type ontology:special_field } } GROUP BY ?m } }
[]
ideology special field political party
SYSTEM
2
Q653566 Q130761
(c(Q7278),P1142,c(Q7257)|c(Q1047113))
action count
action equal
action union
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
value 4
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q7257'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { FILTER ( ?f = 4 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?f ) WHERE { { ?m property:P1142 ?d . ?m rdf:type ontology:Q7278 . ?d rdf:type ontology:Q7257 } UNION { ?m property:P1142 ?d . ?m rdf:type ontology:Q7278 . ?d rdf:type ontology:Q1047113 } } GROUP BY ?m } }
European National Front Popular Unity Candidates
2
action count
action equal
action union
action find_tuple_counts
relation political ideology
type political party
type ideology
action find_tuple_counts
relation political ideology
type political party
type special field
value 4
[{'concept': 'political party'}, 'political ideology', [{'concept': 'ideology'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { FILTER ( ?f = 4 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?f ) WHERE { { ?m property:political_ideology ?d . ?m rdf:type ontology:political_party . ?d rdf:type ontology:ideology } UNION { ?m property:political_ideology ?d . ?m rdf:type ontology:political_party . ?d rdf:type ontology:special_field } } GROUP BY ?m } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q878763
P800
Q502895
USER
Which person is accredited with being the author of the notable work that building ?
action filter_type
action find_reverse
entity Q878763
relation P800
type Q502895
SELECT DISTINCT ?y WHERE { ?y property:P800 resource:Q878763 . ?y rdf:type ontology:Q502895 }
Willy-Brandt-Haus
action filter_type
action find_reverse
entity Willy-Brandt-Haus
relation notable work
type common name
SELECT DISTINCT ?y WHERE { ?y property:notable_work resource:Willy-Brandt-Haus . ?y rdf:type ontology:common_name }
[]
common name
Q1602355
SYSTEM
Helge Bofinger
Q1602355
action filter_type
action find_reverse
entity Q878763
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that building
SELECT DISTINCT ?y WHERE { ?y property:P800 resource:Q878763 . ?y rdf:type ontology:Q502895 }
Helge Bofinger
Helge Bofinger is accredited with being the author of the notable work that building
Helge Bofinger
action filter_type
action find_reverse
entity Willy-Brandt-Haus
relation notable work
type common name
SELECT DISTINCT ?y WHERE { ?y property:notable_work resource:Willy-Brandt-Haus . ?y rdf:type ontology:common_name }
[]