Simple Question (Direct)
Simple Question
Q1486123
P1344
Q1499496
USER
What did Vera Dominke participate in ?
(Q1486123,P1344,c(Q1499496))
action filter_type
action find
entity Q1486123
relation P1344
type Q1499496
['Q1486123', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?o WHERE { resource:Q1486123 property:P1344 ?o . ?o rdf:type ontology:Q1499496 }
Vera Dominke
action filter_type
action find
entity Vera Dominke
relation participant of
type German presidential election
['Vera Dominke', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?o WHERE { resource:Vera_Dominke property:participant_of ?o . ?o rdf:type ontology:German_presidential_election }
[]
German presidential election
Q314532
SYSTEM
German presidential election, 2004
Q314532
(Q1486123,P1344,c(Q1499496))
action filter_type
action find
entity Q1486123
relation P1344
type Q1499496
Vera Dominke participated in [ANSWER]
['Q1486123', 'P1344', {'concept': 'Q1499496'}]
SELECT DISTINCT ?o WHERE { resource:Q1486123 property:P1344 ?o . ?o rdf:type ontology:Q1499496 }
German presidential election, 2004
Vera Dominke participated in German presidential election, 2004
German presidential election, 2004
action filter_type
action find
entity Vera Dominke
relation participant of
type German presidential election
['Vera Dominke', 'participant of', {'concept': 'German presidential election'}]
SELECT DISTINCT ?o WHERE { resource:Vera_Dominke property:participant_of ?o . ?o rdf:type ontology:German_presidential_election }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1486123
P710
Q1499496
USER
What event did that person particiate in ?
(c(Q1499496),P710,Q314532)
action filter_type
action find_reverse
entity Q1486123
relation P710
type Q1499496
[{'concept': 'Q1499496'}, 'P710', 'Q314532']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1499496 . ?q property:P710 resource:Q1486123 }
Vera Dominke
action filter_type
action find_reverse
entity Vera Dominke
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'German presidential election, 2004']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:German_presidential_election . ?q property:participant resource:Vera_Dominke }
[]
German presidential election
Q314532
SYSTEM
German presidential election, 2004
Q314532
(c(Q1499496),P710,Q314532)
action filter_type
action find_reverse
entity Q1486123
relation P710
type Q1499496
That person particiated in [ANSWER]
[{'concept': 'Q1499496'}, 'P710', 'Q314532']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1499496 . ?q property:P710 resource:Q1486123 }
German presidential election, 2004
That person particiated in German presidential election, 2004
German presidential election, 2004
action filter_type
action find_reverse
entity Vera Dominke
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'German presidential election, 2004']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:German_presidential_election . ?q property:participant resource:Vera_Dominke }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1344
Q7210356 Q12737077
USER
How many political organizations and occupations competited in that German presidential election ?
(c(Q7210356),P1344,Q314532) (c(Q12737077),P1344,Q314532) (c(Q7210356),P1344,Q314532) (c(Q12737077),P1344,Q314532)
action count
action union
action filter_type
action find_reverse
entity Q314532
relation P1344
type Q7210356
action filter_type
action find_reverse
entity Q314532
relation P1344
type Q12737077
[{'concept': 'Q7210356'}, 'P1344', 'Q314532'] [{'concept': 'Q12737077'}, 'P1344', 'Q314532'] [{'concept': 'Q7210356'}, 'P1344', 'Q314532'] [{'concept': 'Q12737077'}, 'P1344', 'Q314532']
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12737077 ) ( ontology:Q7210356 ) } }
action count
action union
action filter_type
action find_reverse
entity German presidential election, 2004
relation participant of
type political organization
action filter_type
action find_reverse
entity German presidential election, 2004
relation participant of
type occupation
[{'concept': 'political organization'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'occupation'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'political organization'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'occupation'}, 'participant of', 'German presidential election, 2004']
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:occupation ) ( ontology:political_organization ) } }
[]
political organization occupation
SYSTEM
2 political organizations and 1 occupations
Q13124 Q505829 Q1939555
(c(Q7210356),P1344,Q314532) (c(Q12737077),P1344,Q314532) (c(Q7210356),P1344,Q314532) (c(Q12737077),P1344,Q314532)
action count
action union
action filter_type
action find_reverse
entity Q314532
relation P1344
type Q7210356
action filter_type
action find_reverse
entity Q314532
relation P1344
type Q12737077
[ANSWER]
[{'concept': 'Q7210356'}, 'P1344', 'Q314532'] [{'concept': 'Q12737077'}, 'P1344', 'Q314532'] [{'concept': 'Q7210356'}, 'P1344', 'Q314532'] [{'concept': 'Q12737077'}, 'P1344', 'Q314532']
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12737077 ) ( ontology:Q7210356 ) } }
Free Democratic Party German People's Union member of the German Bundestag
2 political organizations and 1 occupations
action count
action union
action filter_type
action find_reverse
entity German presidential election, 2004
relation participant of
type political organization
action filter_type
action find_reverse
entity German presidential election, 2004
relation participant of
type occupation
[{'concept': 'political organization'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'occupation'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'political organization'}, 'participant of', 'German presidential election, 2004'] [{'concept': 'occupation'}, 'participant of', 'German presidential election, 2004']
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:occupation ) ( ontology:political_organization ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486123
P102
Q7278
USER
Which political party is Vera Dominke a member of ?
(Q1486123,P102,c(Q7278))
action filter_type
action find
entity Q1486123
relation P102
type Q7278
['Q1486123', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q1486123 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Vera Dominke
action filter_type
action find
entity Vera Dominke
relation member of political party
type political party
['Vera Dominke', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Vera_Dominke property:member_of_political_party ?b . ?b rdf:type ontology:political_party }
[]
political party
Q49762
SYSTEM
Christian Democratic Union
Q49762
(Q1486123,P102,c(Q7278))
action filter_type
action find
entity Q1486123
relation P102
type Q7278
Party [ANSWER] is Vera Dominke a member of
['Q1486123', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?b WHERE { resource:Q1486123 property:P102 ?b . ?b rdf:type ontology:Q7278 }
Christian Democratic Union
Party Christian Democratic Union is Vera Dominke a member of
Christian Democratic Union
action filter_type
action find
entity Vera Dominke
relation member of political party
type political party
['Vera Dominke', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?b WHERE { resource:Vera_Dominke property:member_of_political_party ?b . ?b 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 have greater number of special fields as their political ideology than that political party ?
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action count
action filter_type
action find
entity Q49762
relation P1142
type Q7278
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q49762 property:P1142 ?p . ?p rdf:type ontology:Q7278 } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?o ) WHERE { ?e property:P1142 ?y . ?e rdf:type ontology:Q7278 . ?y rdf:type ontology:Q1047113 } GROUP BY ?e } }
action count
action greater
action find_tuple_counts
relation political ideology
type political party
type special field
action count
action filter_type
action find
entity Christian Democratic Union
relation political ideology
type political party
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Christian_Democratic_Union property:political_ideology ?p . ?p rdf:type ontology:political_party } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?o ) WHERE { ?e property:political_ideology ?y . ?e rdf:type ontology:political_party . ?y rdf:type ontology:special_field } GROUP BY ?e } }
[]
special field political party
SYSTEM
34
Q3395191 Q196695 Q950179 Q781486 Q3499324 Q438783 Q25079 Q2031569 Q1104327 Q49758 Q49762 Q1987660 Q1628993 Q3327144 Q713302 Q1437906 Q49766 Q25713876 Q2838243 Q9056254 Q1153753 Q613786 Q1577483 Q662502 Q659739 Q3320917 Q9669 Q4345980 Q1393123 Q208242 Q18761823 Q3366598 Q49755 Q5604424
(c(Q7278),P1142,c(Q1047113))
action count
action greater
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action count
action filter_type
action find
entity Q49762
relation P1142
type Q7278
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Q49762 property:P1142 ?p . ?p rdf:type ontology:Q7278 } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?o ) WHERE { ?e property:P1142 ?y . ?e rdf:type ontology:Q7278 . ?y rdf:type ontology:Q1047113 } GROUP BY ?e } }
Liberal Democratic Party (Spain) Green League European Green Party Australian Greens Green Party Democratic Alternative Alliance of Liberals and Democrats for Europe Party People's Party of Galicia Canarian Coalition National Democratic Party of Germany Christian Democratic Union Green Confederation Democratic Union of Catalonia Liberal Democratic Centre Green Party Taiwan Asturias Forum Alliance '90/The Greens Catalan European Democratic Party People's Alliance People's Party of Cantabria Ecology Generation Europe Ecology – The Greens Alliance of European Conservatives and Reformists Federation of the Greens Green Party of Switzerland Equo Green Party of England and Wales Party of Democratic Reform Ciudadanos European People's Party The Greens People's Party of Navarre Liberal Democratic Party of Germany Greens New South Wales
34
action count
action greater
action find_tuple_counts
relation political ideology
type political party
type special field
action count
action filter_type
action find
entity Christian Democratic Union
relation political ideology
type political party
[{'concept': 'political party'}, 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { FILTER ( ?o > ?d ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { resource:Christian_Democratic_Union property:political_ideology ?p . ?p rdf:type ontology:political_party } } . { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?o ) WHERE { ?e property:political_ideology ?y . ?e rdf:type ontology:political_party . ?y rdf:type ontology:special_field } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1720312 Q1486123
P27
Q1048835
USER
Which political territories are the countries of citizenship of Vera Dominke or Karl Bonstedt ?
OR((Q1486123,P27,c(Q1048835)), (Q1720312,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1486123
relation P27
action find
entity Q1720312
relation P27
type Q1048835
{'OR': [['Q1486123', 'P27', {'concept': 'Q1048835'}], ['Q1720312', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P27 ?l . VALUES ( ?z ) { ( resource:Q1486123 ) ( resource:Q1720312 ) } } . ?l rdf:type ontology:Q1048835 }
Karl Bonstedt Vera Dominke
action filter_type
action union
action find
entity Vera Dominke
relation country of citizenship
action find
entity Karl Bonstedt
relation country of citizenship
type political territorial entity
{'OR': [['Vera Dominke', 'country of citizenship', {'concept': 'political territorial entity'}], ['Karl Bonstedt', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:country_of_citizenship ?l . VALUES ( ?z ) { ( resource:Vera_Dominke ) ( resource:Karl_Bonstedt ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q1486123,P27,c(Q1048835)), (Q1720312,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1486123
relation P27
action find
entity Q1720312
relation P27
type Q1048835
[ANSWER] is the countries of citizenship of Vera Dominke or Karl Bonstedt
{'OR': [['Q1486123', 'P27', {'concept': 'Q1048835'}], ['Q1720312', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P27 ?l . VALUES ( ?z ) { ( resource:Q1486123 ) ( resource:Q1720312 ) } } . ?l rdf:type ontology:Q1048835 }
Germany
Germany is the countries of citizenship of Vera Dominke or Karl Bonstedt
Germany
action filter_type
action union
action find
entity Vera Dominke
relation country of citizenship
action find
entity Karl Bonstedt
relation country of citizenship
type political territorial entity
{'OR': [['Vera Dominke', 'country of citizenship', {'concept': 'political territorial entity'}], ['Karl Bonstedt', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:country_of_citizenship ?l . VALUES ( ?z ) { ( resource:Vera_Dominke ) ( resource:Karl_Bonstedt ) } } . ?l rdf:type ontology:political_territorial_entity }
[]