Simple Question (Direct)
Simple Question
Q108126
P102
Q7278
USER
Which political party is Katherina Reiche a member of ?
(Q108126,P102,c(Q7278))
action filter_type
action find
entity Q108126
relation P102
type Q7278
['Q108126', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q108126 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Katherina Reiche
action filter_type
action find
entity Katherina Reiche
relation member of political party
type political party
['Katherina Reiche', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Katherina_Reiche property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
political party
Q49762
SYSTEM
Christian Democratic Union
Q49762
(Q108126,P102,c(Q7278))
action filter_type
action find
entity Q108126
relation P102
type Q7278
Party [ANSWER] is Katherina Reiche a member of
['Q108126', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?r WHERE { resource:Q108126 property:P102 ?r . ?r rdf:type ontology:Q7278 }
Christian Democratic Union
Party Christian Democratic Union is Katherina Reiche a member of
Christian Democratic Union
action filter_type
action find
entity Katherina Reiche
relation member of political party
type political party
['Katherina Reiche', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?r WHERE { resource:Katherina_Reiche property:member_of_political_party ?r . ?r rdf:type ontology:political_party }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q108126
P21
Q290
USER
What is the sex of Katherina Reiche ?
(Q108126,P21,c(Q290))
action filter_type
action find
entity Q108126
relation P21
type Q290
['Q108126', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q108126 property:P21 ?c . ?c rdf:type ontology:Q290 }
Katherina Reiche
action filter_type
action find
entity Katherina Reiche
relation gender
type sex
['Katherina Reiche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Katherina_Reiche property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q108126,P21,c(Q290))
action filter_type
action find
entity Q108126
relation P21
type Q290
The sex of Katherina Reiche is the [ANSWER]
['Q108126', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q108126 property:P21 ?c . ?c rdf:type ontology:Q290 }
female
The sex of Katherina Reiche is the female
female
action filter_type
action find
entity Katherina Reiche
relation gender
type sex
['Katherina Reiche', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Katherina_Reiche property:gender ?c . ?c rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q1885984
P21
Q502895
USER
Is Maja Nielsen a that sex ?
(Q1885984,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q1885984
relation P21
['Q1885984', 'P21', 'Q6581072']
ASK WHERE { resource:Q1885984 property:P21 resource:Q6581072 }
female Maja Nielsen
action is_in
entity female
action find
entity Maja Nielsen
relation gender
['Maja Nielsen', 'gender', 'female']
ASK WHERE { resource:Maja_Nielsen property:gender resource:female }
[]
common name
SYSTEM
YES
(Q1885984,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q1885984
relation P21
[ANSWER]
['Q1885984', 'P21', 'Q6581072']
ASK WHERE { resource:Q1885984 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Maja Nielsen
relation gender
['Maja Nielsen', 'gender', 'female']
ASK WHERE { resource:Maja_Nielsen property:gender resource:female }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q885747 Q108126
P937 P20
Q56061
USER
Which administrative territories are the work locations of Katherina Reiche or did the demise of William Sherman Jennings occur ?
OR((Q108126,P937,c(Q56061)), (Q885747,P20,c(Q56061)))
action filter_type
action union
action find
entity Q108126
relation P937
action find
entity Q885747
relation P20
type Q56061
{'OR': [['Q108126', 'P937', {'concept': 'Q56061'}], ['Q885747', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q108126 property:P937 ?a } UNION { resource:Q885747 property:P20 ?a } } . ?a rdf:type ontology:Q56061 }
William Sherman Jennings Katherina Reiche
action filter_type
action union
action find
entity Katherina Reiche
relation work location
action find
entity William Sherman Jennings
relation place of death
type administrative territorial entity
{'OR': [['Katherina Reiche', 'work location', {'concept': 'administrative territorial entity'}], ['William Sherman Jennings', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Katherina_Reiche property:work_location ?a } UNION { resource:William_Sherman_Jennings property:place_of_death ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586 Q487988
SYSTEM
Berlin, Bonn, St. Augustine
Q64 Q586 Q487988
OR((Q108126,P937,c(Q56061)), (Q885747,P20,c(Q56061)))
action filter_type
action union
action find
entity Q108126
relation P937
action find
entity Q885747
relation P20
type Q56061
[ANSWERS] are the work locations of Katherina Reiche or did the demise of William Sherman Jennings occur
{'OR': [['Q108126', 'P937', {'concept': 'Q56061'}], ['Q885747', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q108126 property:P937 ?a } UNION { resource:Q885747 property:P20 ?a } } . ?a rdf:type ontology:Q56061 }
Berlin Bonn St. Augustine
Berlin, Bonn and St. Augustine are the work locations of Katherina Reiche or did the demise of William Sherman Jennings occur
Berlin Bonn St. Augustine
action filter_type
action union
action find
entity Katherina Reiche
relation work location
action find
entity William Sherman Jennings
relation place of death
type administrative territorial entity
{'OR': [['Katherina Reiche', 'work location', {'concept': 'administrative territorial entity'}], ['William Sherman Jennings', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Katherina_Reiche property:work_location ?a } UNION { resource:William_Sherman_Jennings property:place_of_death ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q64 Q586 Q487988
P17
Q15617994
USER
Which administrative territories are Berlin, Bonn and St. Augustine situated in ?
(Q64,P17,c(Q15617994)) (Q586,P17,c(Q15617994)) (Q487988,P17,c(Q15617994))
action union
action filter_type
action find
entity Q64
relation P17
type Q15617994
action filter_type
action find
entity Q586
relation P17
type Q15617994
action filter_type
action find
entity Q487988
relation P17
type Q15617994
['Q64', 'P17', {'concept': 'Q15617994'}] ['Q586', 'P17', {'concept': 'Q15617994'}] ['Q487988', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Q586 ) ( resource:Q64 ) } . ?g property:P17 ?d }
Berlin Bonn St. Augustine
action union
action filter_type
action find
entity Berlin
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Bonn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity St. Augustine
relation country
type designation for an administrative territorial entity
['Berlin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bonn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['St. Augustine', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Bonn ) ( resource:Berlin ) } . ?g property:country ?d }
[]
designation for an administrative territorial entity
Q148499 Q142 Q30
SYSTEM
Margraviate of Brandenburg, France, United States of America
Q148499 Q142 Q30
(Q64,P17,c(Q15617994)) (Q586,P17,c(Q15617994)) (Q487988,P17,c(Q15617994))
action union
action filter_type
action find
entity Q64
relation P17
type Q15617994
action filter_type
action find
entity Q586
relation P17
type Q15617994
action filter_type
action find
entity Q487988
relation P17
type Q15617994
Berlin , Bonn and St. Augustine are situated in [ANSWERS]
['Q64', 'P17', {'concept': 'Q15617994'}] ['Q586', 'P17', {'concept': 'Q15617994'}] ['Q487988', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Q586 ) ( resource:Q64 ) } . ?g property:P17 ?d }
Margraviate of Brandenburg France United States of America
Berlin , Bonn and St. Augustine are situated in Margraviate of Brandenburg, France and United States of America
Margraviate of Brandenburg France United States of America
action union
action filter_type
action find
entity Berlin
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Bonn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity St. Augustine
relation country
type designation for an administrative territorial entity
['Berlin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bonn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['St. Augustine', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?g ) { ( resource:Bonn ) ( resource:Berlin ) } . ?g property:country ?d }
[]
Clarification
Simple Question|Single Entity|Indirect
Q148499
P101
Q502895
USER
Who works in the domain of that administrative territory ?
(c(Q502895),P101,Q148499)
action filter_type
action find_reverse
entity Q148499
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q148499']
SELECT DISTINCT ?t WHERE { ?t property:P101 resource:Q148499 . ?t rdf:type ontology:Q502895 }
Margraviate of Brandenburg
action filter_type
action find_reverse
entity Margraviate of Brandenburg
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Margraviate of Brandenburg']
SELECT DISTINCT ?t WHERE { ?t property:field_of_work resource:Margraviate_of_Brandenburg . ?t rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q148499
SYSTEM
Did you mean Margraviate of Brandenburg ?
Q148499 Q142 Q30
(c(Q502895),P101,Q148499) (c(Q502895),P101,Q142) (c(Q502895),P101,Q30)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q148499'] [{'concept': 'Q502895'}, 'P101', 'Q142'] [{'concept': 'Q502895'}, 'P101', 'Q30']
SELECT DISTINCT ?t WHERE { ?t property:P101 resource:Q148499 . ?t rdf:type ontology:Q502895 }
Margraviate of Brandenburg France United States of America
Did you mean Margraviate of Brandenburg ?
Margraviate of Brandenburg
[{'concept': 'common name'}, 'field of work', 'Margraviate of Brandenburg'] [{'concept': 'common name'}, 'field of work', 'France'] [{'concept': 'common name'}, 'field of work', 'United States of America']
SELECT DISTINCT ?t WHERE { ?t property:field_of_work resource:Margraviate_of_Brandenburg . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P101,Q148499)
[{'concept': 'Q502895'}, 'P101', 'Q148499']
[{'concept': 'common name'}, 'field of work', 'Margraviate of Brandenburg']
[]
Q15080578
SYSTEM
Marcus Cyron
Q15080578
(c(Q502895),P101,Q148499)
action filter_type
action find_reverse
entity Q148499
relation P101
type Q502895
[ANSWER] works in the domain of that administrative territory
[{'concept': 'Q502895'}, 'P101', 'Q148499']
SELECT DISTINCT ?t WHERE { ?t property:P101 resource:Q148499 . ?t rdf:type ontology:Q502895 }
Marcus Cyron
Marcus Cyron works in the domain of that administrative territory
Marcus Cyron
action filter_type
action find_reverse
entity Margraviate of Brandenburg
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'Margraviate of Brandenburg']
SELECT DISTINCT ?t WHERE { ?t property:field_of_work resource:Margraviate_of_Brandenburg . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q62447 Q2088357
USER
How many administrative territories are the etymology of approximately 1 aerodromes and musical ensembles ?
(c(Q62447)|c(Q2088357),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
value 1
[[{'concept': 'Q62447'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?f WHERE { { ?w property:P138 ?f . ?w rdf:type ontology:Q62447 . ?f rdf:type ontology:Q15617994 } UNION { ?w property:P138 ?f . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2088357 } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
value 1
[[{'concept': 'aerodrome'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?f WHERE { { ?w property:named_after ?f . ?w rdf:type ontology:aerodrome . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:named_after ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:musical_ensemble } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
[]
designation for an administrative territorial entity aerodrome musical ensemble
SYSTEM
3
Q80599 Q205050 Q629664
(c(Q62447)|c(Q2088357),P138,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q62447
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
value 1
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q2088357'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?f WHERE { { ?w property:P138 ?f . ?w rdf:type ontology:Q62447 . ?f rdf:type ontology:Q15617994 } UNION { ?w property:P138 ?f . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q2088357 } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
Auletta Geilenkirchen Arbesbach
3
action count
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type aerodrome
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
value 1
[[{'concept': 'aerodrome'}, {'concept': 'musical ensemble'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) ?f WHERE { { ?w property:named_after ?f . ?w rdf:type ontology:aerodrome . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?w property:named_after ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:musical_ensemble } } GROUP BY ?f } . FILTER ( ?b = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P127
Q3947
USER
Which house is under posessision of Berlin ?
(c(Q3947),P127,Q64)
action filter_type
action find_reverse
entity Q64
relation P127
type Q3947
[{'concept': 'Q3947'}, 'P127', 'Q64']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q64 . ?b rdf:type ontology:Q3947 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation owned by
type house
[{'concept': 'house'}, 'owned by', 'Berlin']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Berlin . ?b rdf:type ontology:house }
[]
house
Q1467291
SYSTEM
Joachimstraße 6/8
Q1467291
(c(Q3947),P127,Q64)
action filter_type
action find_reverse
entity Q64
relation P127
type Q3947
[ANSWER] is under posessision of Berlin
[{'concept': 'Q3947'}, 'P127', 'Q64']
SELECT DISTINCT ?b WHERE { ?b property:P127 resource:Q64 . ?b rdf:type ontology:Q3947 }
Joachimstraße 6/8
Joachimstraße 6/8 is under posessision of Berlin
Joachimstraße 6/8
action filter_type
action find_reverse
entity Berlin
relation owned by
type house
[{'concept': 'house'}, 'owned by', 'Berlin']
SELECT DISTINCT ?b WHERE { ?b property:owned_by resource:Berlin . ?b rdf:type ontology:house }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1467291
P1435
Q2065736
USER
Which cultural property is the heritage status of that house ?
(Q1467291,P1435,c(Q2065736))
action filter_type
action find
entity Q1467291
relation P1435
type Q2065736
['Q1467291', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?m WHERE { resource:Q1467291 property:P1435 ?m . ?m rdf:type ontology:Q2065736 }
Joachimstraße 6/8
action filter_type
action find
entity Joachimstraße 6/8
relation heritage status
type cultural property
['Joachimstraße 6/8', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?m WHERE { resource:Joachimstraße_6/8 property:heritage_status ?m . ?m rdf:type ontology:cultural_property }
[]
cultural property
Q15632117
SYSTEM
Baudenkmal
Q15632117
(Q1467291,P1435,c(Q2065736))
action filter_type
action find
entity Q1467291
relation P1435
type Q2065736
[ANSWER] is the heritage status of that house
['Q1467291', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?m WHERE { resource:Q1467291 property:P1435 ?m . ?m rdf:type ontology:Q2065736 }
Baudenkmal
Baudenkmal is the heritage status of that house
Baudenkmal
action filter_type
action find
entity Joachimstraße 6/8
relation heritage status
type cultural property
['Joachimstraße 6/8', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?m WHERE { resource:Joachimstraße_6/8 property:heritage_status ?m . ?m rdf:type ontology:cultural_property }
[]