Simple Question (Direct)
Simple Question
Q1599844
P937
Q56061
USER
Which is the work location of Heinz-Dieter Hackel ?
(Q1599844,P937,c(Q56061))
action filter_type
action find
entity Q1599844
relation P937
type Q56061
['Q1599844', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1599844 property:P937 ?p . ?p rdf:type ontology:Q56061 }
Heinz-Dieter Hackel
action filter_type
action find
entity Heinz-Dieter Hackel
relation work location
type administrative territorial entity
['Heinz-Dieter Hackel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Heinz-Dieter_Hackel property:work_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q1599844,P937,c(Q56061))
action filter_type
action find
entity Q1599844
relation P937
type Q56061
The work location of Heinz-Dieter Hackel is in [ANSWER]
['Q1599844', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1599844 property:P937 ?p . ?p rdf:type ontology:Q56061 }
Bonn
The work location of Heinz-Dieter Hackel is in Bonn
Bonn
action filter_type
action find
entity Heinz-Dieter Hackel
relation work location
type administrative territorial entity
['Heinz-Dieter Hackel', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Heinz-Dieter_Hackel property:work_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1599844
P39
Q12737077
USER
Which occupation was a position for which Heinz-Dieter Hackel was appointed ?
(Q1599844,P39,c(Q12737077))
action filter_type
action find
entity Q1599844
relation P39
type Q12737077
['Q1599844', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1599844 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Heinz-Dieter Hackel
action filter_type
action find
entity Heinz-Dieter Hackel
relation position held
type occupation
['Heinz-Dieter Hackel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Heinz-Dieter_Hackel property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q1939555
SYSTEM
member of the German Bundestag
Q1939555
(Q1599844,P39,c(Q12737077))
action filter_type
action find
entity Q1599844
relation P39
type Q12737077
The [ANSWER] was a position for which Heinz-Dieter Hackel was appointed
['Q1599844', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1599844 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
member of the German Bundestag
The member of the German Bundestag was a position for which Heinz-Dieter Hackel was appointed
member of the German Bundestag
action filter_type
action find
entity Heinz-Dieter Hackel
relation position held
type occupation
['Heinz-Dieter Hackel', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Heinz-Dieter_Hackel property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599844
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q1939555,P102,c(Q7210356))
action filter_type
action find
entity Q1599844
relation P102
type Q7210356
['Q1939555', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q1599844 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Heinz-Dieter Hackel
action filter_type
action find
entity Heinz-Dieter Hackel
relation member of political party
type political organization
['member of the German Bundestag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Heinz-Dieter_Hackel property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
political organization
Q13124
SYSTEM
Free Democratic Party
Q13124
(Q1939555,P102,c(Q7210356))
action filter_type
action find
entity Q1599844
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q1939555', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { resource:Q1599844 property:P102 ?z . ?z rdf:type ontology:Q7210356 }
Free Democratic Party
That person is affiliated with Free Democratic Party
Free Democratic Party
action filter_type
action find
entity Heinz-Dieter Hackel
relation member of political party
type political organization
['member of the German Bundestag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { resource:Heinz-Dieter_Hackel property:member_of_political_party ?z . ?z rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13124
P1142
Q1047113
USER
Which special field is the political ideology of that one ?
(Q13124,P1142,c(Q1047113))
action filter_type
action find
entity Q13124
relation P1142
type Q1047113
['Q13124', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q13124 property:P1142 ?x . ?x rdf:type ontology:Q1047113 }
Free Democratic Party
action filter_type
action find
entity Free Democratic Party
relation political ideology
type special field
['Free Democratic Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:Free_Democratic_Party property:political_ideology ?x . ?x rdf:type ontology:special_field }
[]
special field
Q6216
SYSTEM
liberalism
Q6216
(Q13124,P1142,c(Q1047113))
action filter_type
action find
entity Q13124
relation P1142
type Q1047113
[ANSWER] is the political ideology of that one
['Q13124', 'P1142', {'concept': 'Q1047113'}]
SELECT DISTINCT ?x WHERE { resource:Q13124 property:P1142 ?x . ?x rdf:type ontology:Q1047113 }
liberalism
Liberalism is the political ideology of that one
liberalism
action filter_type
action find
entity Free Democratic Party
relation political ideology
type special field
['Free Democratic Party', 'political ideology', {'concept': 'special field'}]
SELECT DISTINCT ?x WHERE { resource:Free_Democratic_Party property:political_ideology ?x . ?x rdf:type ontology:special_field }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q13124 Q6122670
P361
Q874405
USER
How many social groups are parts of Free Democratic Party or Māori ?
(c(Q874405),P361,Q13124) (c(Q874405),P361,Q6122670)
action count
action union
action filter_type
action find_reverse
entity Q13124
relation P361
type Q874405
action filter_type
action find_reverse
entity Q6122670
relation P361
type Q874405
[{'concept': 'Q874405'}, 'P361', 'Q13124'] [{'concept': 'Q874405'}, 'P361', 'Q6122670']
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P361 resource:Q13124 . ?i rdf:type ontology:Q874405 } UNION { ?i rdf:type ontology:Q874405 . ?i property:P361 resource:Q6122670 } }
Free Democratic Party Māori
action count
action union
action filter_type
action find_reverse
entity Free Democratic Party
relation part of
type social group
action filter_type
action find_reverse
entity Māori
relation part of
type social group
[{'concept': 'social group'}, 'part of', 'Free Democratic Party'] [{'concept': 'social group'}, 'part of', 'Māori']
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:part_of resource:Free_Democratic_Party . ?i rdf:type ontology:social_group } UNION { ?i rdf:type ontology:social_group . ?i property:part_of resource:Māori } }
[]
social group
SYSTEM
4
Q371230 Q1138165 Q7023227 Q7691049
(c(Q874405),P361,Q13124) (c(Q874405),P361,Q6122670)
action count
action union
action filter_type
action find_reverse
entity Q13124
relation P361
type Q874405
action filter_type
action find_reverse
entity Q6122670
relation P361
type Q874405
[ANSWER]
[{'concept': 'Q874405'}, 'P361', 'Q13124'] [{'concept': 'Q874405'}, 'P361', 'Q6122670']
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P361 resource:Q13124 . ?i rdf:type ontology:Q874405 } UNION { ?i rdf:type ontology:Q874405 . ?i property:P361 resource:Q6122670 } }
Ngāi Tahu Ngāti Kahungunu Ngāti Kahu Te Āti Awa
4
action count
action union
action filter_type
action find_reverse
entity Free Democratic Party
relation part of
type social group
action filter_type
action find_reverse
entity Māori
relation part of
type social group
[{'concept': 'social group'}, 'part of', 'Free Democratic Party'] [{'concept': 'social group'}, 'part of', 'Māori']
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:part_of resource:Free_Democratic_Party . ?i rdf:type ontology:social_group } UNION { ?i rdf:type ontology:social_group . ?i property:part_of resource:Māori } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q13124
P463
Q7278 Q79913
USER
How many political parties or non-governmental organizations were Free Democratic Party a member of ?
(Q13124,P463,c(Q7278)) (Q13124,P463,c(Q79913))
action count
action union
action filter_type
action find
entity Q13124
relation P463
type Q7278
action filter_type
action find
entity Q13124
relation P463
type Q79913
['Q13124', 'P463', {'concept': 'Q7278'}] ['Q13124', 'P463', {'concept': 'Q79913'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { resource:Q13124 property:P463 ?x . ?x rdf:type ontology:Q7278 } UNION { resource:Q13124 property:P463 ?x . ?x rdf:type ontology:Q79913 } }
Free Democratic Party
action count
action union
action filter_type
action find
entity Free Democratic Party
relation member of
type political party
action filter_type
action find
entity Free Democratic Party
relation member of
type non-governmental organization
['Free Democratic Party', 'member of', {'concept': 'political party'}] ['Free Democratic Party', 'member of', {'concept': 'non-governmental organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { resource:Free_Democratic_Party property:member_of ?x . ?x rdf:type ontology:political_party } UNION { resource:Free_Democratic_Party property:member_of ?x . ?x rdf:type ontology:non-governmental_organization } }
[]
political party non-governmental organization
SYSTEM
2
Q25079 Q537395
(Q13124,P463,c(Q7278)) (Q13124,P463,c(Q79913))
action count
action union
action filter_type
action find
entity Q13124
relation P463
type Q7278
action filter_type
action find
entity Q13124
relation P463
type Q79913
[ANSWER]
['Q13124', 'P463', {'concept': 'Q7278'}] ['Q13124', 'P463', {'concept': 'Q79913'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { resource:Q13124 property:P463 ?x . ?x rdf:type ontology:Q7278 } UNION { resource:Q13124 property:P463 ?x . ?x rdf:type ontology:Q79913 } }
Alliance of Liberals and Democrats for Europe Party European Movement Germany
2
action count
action union
action filter_type
action find
entity Free Democratic Party
relation member of
type political party
action filter_type
action find
entity Free Democratic Party
relation member of
type non-governmental organization
['Free Democratic Party', 'member of', {'concept': 'political party'}] ['Free Democratic Party', 'member of', {'concept': 'non-governmental organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { resource:Free_Democratic_Party property:member_of ?x . ?x rdf:type ontology:political_party } UNION { resource:Free_Democratic_Party property:member_of ?x . ?x rdf:type ontology:non-governmental_organization } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1047113 Q8502 Q1914636
USER
How many special fields are exactly 1 mountains and activities a component of ?
(c(Q8502)|c(Q1914636),P361,c(Q1047113))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q8502
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1914636
value 1
[[{'concept': 'Q8502'}, {'concept': 'Q1914636'}], 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) ?k WHERE { VALUES ( ?l ) { ( ontology:Q8502 ) ( ontology:Q1914636 ) } . ?e rdf:type ?l } GROUP BY ?k } . FILTER ( ?v = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type special field
type mountain
action find_reverse_tuple_counts
relation part of
type special field
type activity
value 1
[[{'concept': 'mountain'}, {'concept': 'activity'}], 'part of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) ?k WHERE { VALUES ( ?l ) { ( ontology:mountain ) ( ontology:activity ) } . ?e rdf:type ?l } GROUP BY ?k } . FILTER ( ?v = 1 ) }
[]
special field mountain activity
SYSTEM
4
Q40821 Q2861470 Q161437 Q131089
(c(Q8502)|c(Q1914636),P361,c(Q1047113))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q8502
action find_reverse_tuple_counts
relation P361
type Q1047113
type Q1914636
value 1
[ANSWER]
[[{'concept': 'Q8502'}, {'concept': 'Q1914636'}], 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) ?k WHERE { VALUES ( ?l ) { ( ontology:Q8502 ) ( ontology:Q1914636 ) } . ?e rdf:type ?l } GROUP BY ?k } . FILTER ( ?v = 1 ) }
surgery emergency medicine ophthalmology geodesy
4
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type special field
type mountain
action find_reverse_tuple_counts
relation part of
type special field
type activity
value 1
[[{'concept': 'mountain'}, {'concept': 'activity'}], 'part of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) ?k WHERE { VALUES ( ?l ) { ( ontology:mountain ) ( ontology:activity ) } . ?e rdf:type ?l } GROUP BY ?k } . FILTER ( ?v = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q9332 Q1047113
USER
Which behaviors are approximately 1 special field a component of ?
(c(Q1047113),P361,c(Q9332))
action approx
action find_reverse_tuple_counts
relation P361
type Q9332
type Q1047113
value 1
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P361 ?n . ?n rdf:type ontology:Q9332 . ?z rdf:type ontology:Q1047113 } GROUP BY ?n } . FILTER ( ?d = 1 ) }
action approx
action find_reverse_tuple_counts
relation part of
type behavior
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:part_of ?n . ?n rdf:type ontology:behavior . ?z rdf:type ontology:special_field } GROUP BY ?n } . FILTER ( ?d = 1 ) }
[]
behavior special field
Q8434 Q336
SYSTEM
education, science
Q8434 Q336
(c(Q1047113),P361,c(Q9332))
action approx
action find_reverse_tuple_counts
relation P361
type Q9332
type Q1047113
value 1
[ANSWERS] are approximately 1 special field a component of
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q9332'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P361 ?n . ?n rdf:type ontology:Q9332 . ?z rdf:type ontology:Q1047113 } GROUP BY ?n } . FILTER ( ?d = 1 ) }
education science
Education and science are approximately 1 special field a component of
education science
action approx
action find_reverse_tuple_counts
relation part of
type behavior
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'behavior'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:part_of ?n . ?n rdf:type ontology:behavior . ?z rdf:type ontology:special_field } GROUP BY ?n } . FILTER ( ?d = 1 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P101
Q9332 Q21114848
USER
How many behaviors do greater number of magazine genres belong to than that behavior ?
(c(Q21114848),P101,c(Q9332))
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q9332 }
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:behavior }
[]
behavior magazine genre
Comparative|Count over More/Less|Single entity type|Clarification
Q8434
SYSTEM
Did you mean education ?
(c(Q21114848),P101,c(Q9332))
[ANSWER]
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q9332 }
Did you mean education ?
education
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:behavior }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant science. Could you tell me the answer for that?
(c(Q21114848),P101,c(Q9332))
Q336
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q9332'}]
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'behavior'}]
[]
SYSTEM
0
(c(Q21114848),P101,c(Q9332))
[ANSWER]
[{'concept': 'Q21114848'}, 'P101', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q627436 ?y . ?z rdf:type ontology:Q21114848 . ?y rdf:type ontology:Q9332 }
0
[{'concept': 'magazine genre'}, 'field of work', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:field_of_work ?y . ?z rdf:type ontology:magazine_genre . ?y rdf:type ontology:behavior }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q586
P138
Q34442
USER
Which roads are the eponym of Bonn ?
(c(Q34442),P138,Q586)
action filter_type
action find_reverse
entity Q586
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q586']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q586 . ?c rdf:type ontology:Q34442 }
Bonn
action filter_type
action find_reverse
entity Bonn
relation named after
type road
[{'concept': 'road'}, 'named after', 'Bonn']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:Bonn . ?c rdf:type ontology:road }
[]
road
Q15803536 Q15813242 Q892807
SYSTEM
Bonner Landstraße, Bonner Straße, Bonngasse
Q15803536 Q15813242 Q892807
(c(Q34442),P138,Q586)
action filter_type
action find_reverse
entity Q586
relation P138
type Q34442
The eponym of Bonn are the [ANSWERS]
[{'concept': 'Q34442'}, 'P138', 'Q586']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q586 . ?c rdf:type ontology:Q34442 }
Bonner Landstraße Bonner Straße Bonngasse
The eponym of Bonn are the Bonner Landstraße, Bonner Straße and Bonngasse
Bonner Landstraße Bonner Straße Bonngasse
action filter_type
action find_reverse
entity Bonn
relation named after
type road
[{'concept': 'road'}, 'named after', 'Bonn']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:Bonn . ?c rdf:type ontology:road }
[]