Simple Question (Direct)
Simple Question
Q1624637
P21
Q290
USER
Which sex does Holger Strohm possess ?
(Q1624637,P21,c(Q290))
action filter_type
action find
entity Q1624637
relation P21
type Q290
['Q1624637', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1624637 property:P21 ?b . ?b rdf:type ontology:Q290 }
Holger Strohm
action filter_type
action find
entity Holger Strohm
relation gender
type sex
['Holger Strohm', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Holger_Strohm property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1624637,P21,c(Q290))
action filter_type
action find
entity Q1624637
relation P21
type Q290
Holger Strohm possesses a [ANSWER]
['Q1624637', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1624637 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Holger Strohm possesses a male
male
action filter_type
action find
entity Holger Strohm
relation gender
type sex
['Holger Strohm', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Holger_Strohm property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1624637
P19
Q15617994
USER
Which administrative territory was Holger Strohm born at ?
(Q1624637,P19,c(Q15617994))
action filter_type
action find
entity Q1624637
relation P19
type Q15617994
['Q1624637', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1624637 property:P19 ?h . ?h rdf:type ontology:Q15617994 }
Holger Strohm
action filter_type
action find
entity Holger Strohm
relation place of birth
type designation for an administrative territorial entity
['Holger Strohm', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Holger_Strohm property:place_of_birth ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q498036
SYSTEM
Mölln
Q498036
(Q1624637,P19,c(Q15617994))
action filter_type
action find
entity Q1624637
relation P19
type Q15617994
Holger Strohm was born in [ANSWER]
['Q1624637', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1624637 property:P19 ?h . ?h rdf:type ontology:Q15617994 }
Mölln
Holger Strohm was born in Mölln
Mölln
action filter_type
action find
entity Holger Strohm
relation place of birth
type designation for an administrative territorial entity
['Holger Strohm', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Holger_Strohm property:place_of_birth ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3839632
Q15617994
USER
And also tell me about Luigi Ferri?
(Q3839632,P19,c(Q15617994))
action filter_type
action find
entity Q3839632
relation P19
type Q15617994
['Q3839632', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3839632 property:P19 ?l . ?l rdf:type ontology:Q15617994 }
Luigi Ferri
action filter_type
action find
entity Luigi Ferri
relation place of birth
type designation for an administrative territorial entity
['Luigi Ferri', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Luigi_Ferri property:place_of_birth ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13142
SYSTEM
Fano
Q13142
(Q3839632,P19,c(Q15617994))
action filter_type
action find
entity Q3839632
relation P19
type Q15617994
[ANSWER]
['Q3839632', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3839632 property:P19 ?l . ?l rdf:type ontology:Q15617994 }
Fano
Fano
action filter_type
action find
entity Luigi Ferri
relation place of birth
type designation for an administrative territorial entity
['Luigi Ferri', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Luigi_Ferri property:place_of_birth ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q337567 Q41176
USER
Which administrative territories are the origin of max number of still waterss or buildings ?
(c(Q337567)|c(Q41176),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q41176
[[{'concept': 'Q337567'}, {'concept': 'Q41176'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = ?h ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:Q41176 ) ( ontology:Q337567 ) } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?s ) AS ?h ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q41176 } UNION { ?n property:P138 ?i . ?n rdf:type ontology:Q337567 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } } }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type building
[[{'concept': 'still waters'}, {'concept': 'building'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = ?h ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:building ) ( ontology:still_waters ) } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?s ) AS ?h ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:building } UNION { ?n property:named_after ?i . ?n rdf:type ontology:still_waters . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } } }
[]
designation for an administrative territorial entity still waters building
Q29 Q697 Q519157
SYSTEM
Spain, Nauru, Templin
Q519157 Q697 Q681329 Q29 Q631654
(c(Q337567)|c(Q41176),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q41176
[ANSWERS] are the origin of max number of still waterss or buildings
[[{'concept': 'Q337567'}, {'concept': 'Q41176'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = ?h ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:Q41176 ) ( ontology:Q337567 ) } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?s ) AS ?h ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q41176 } UNION { ?n property:P138 ?i . ?n rdf:type ontology:Q337567 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } } }
Templin Nauru Dümmer Spain Selent
Spain, Nauru and Templin are the origin of max number of still waterss or buildings
Spain Nauru Templin
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type building
[[{'concept': 'still waters'}, {'concept': 'building'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?k = ?h ) . { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ?t . VALUES ( ?t ) { ( ontology:building ) ( ontology:still_waters ) } } GROUP BY ?e } . { SELECT DISTINCT ( MAX ( ?s ) AS ?h ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:building } UNION { ?n property:named_after ?i . ?n rdf:type ontology:still_waters . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q697
P35
Q502895
USER
Who are the chiefs of state of that administrative territory ?
(Q697,P35,c(Q502895))
action filter_type
action find
entity Q697
relation P35
type Q502895
['Q697', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q697 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Nauru
action filter_type
action find
entity Nauru
relation head of state
type common name
['Nauru', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Nauru property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q519157
SYSTEM
Did you mean Templin ?
Q29 Q697 Q519157
(Q29,P35,c(Q502895)) (Q697,P35,c(Q502895)) (Q519157,P35,c(Q502895))
[ANSWER]
['Q29', 'P35', {'concept': 'Q502895'}] ['Q697', 'P35', {'concept': 'Q502895'}] ['Q519157', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q697 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Spain Nauru Templin
Did you mean Templin ?
Templin
['Spain', 'head of state', {'concept': 'common name'}] ['Nauru', 'head of state', {'concept': 'common name'}] ['Templin', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Nauru property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Nauru. Could you tell me the answer for that?
(Q697,P35,c(Q502895))
Q697
['Q697', 'P35', {'concept': 'Q502895'}]
['Nauru', 'head of state', {'concept': 'common name'}]
[]
Q57543 Q563297
SYSTEM
Sprent Dabwido, Baron Waqa
Q57543 Q563297
(Q697,P35,c(Q502895))
action filter_type
action find
entity Q697
relation P35
type Q502895
The chiefs of state of that administrative territory are Baron [ANSWERS]
['Q697', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q697 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Sprent Dabwido Baron Waqa
The chiefs of state of that administrative territory are Baron Sprent Dabwido and Baron Waqa
Sprent Dabwido Baron Waqa
action filter_type
action find
entity Nauru
relation head of state
type common name
['Nauru', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Nauru property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q697 Q2096
P194
Q1752346
USER
How many assemblies govern Nauru or Edmonton ?
(Q697,P194,c(Q1752346)) (Q2096,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q697
relation P194
type Q1752346
action filter_type
action find
entity Q2096
relation P194
type Q1752346
['Q697', 'P194', {'concept': 'Q1752346'}] ['Q2096', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { resource:Q697 property:P194 ?f . ?f rdf:type ontology:Q1752346 } UNION { resource:Q2096 property:P194 ?f . ?f rdf:type ontology:Q1752346 } }
Nauru Edmonton
action count
action union
action filter_type
action find
entity Nauru
relation legislative body
type assembly
action filter_type
action find
entity Edmonton
relation legislative body
type assembly
['Nauru', 'legislative body', {'concept': 'assembly'}] ['Edmonton', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { resource:Nauru property:legislative_body ?f . ?f rdf:type ontology:assembly } UNION { resource:Edmonton property:legislative_body ?f . ?f rdf:type ontology:assembly } }
[]
assembly
SYSTEM
2
Q1972029 Q5339025
(Q697,P194,c(Q1752346)) (Q2096,P194,c(Q1752346))
action count
action union
action filter_type
action find
entity Q697
relation P194
type Q1752346
action filter_type
action find
entity Q2096
relation P194
type Q1752346
[ANSWER]
['Q697', 'P194', {'concept': 'Q1752346'}] ['Q2096', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { resource:Q697 property:P194 ?f . ?f rdf:type ontology:Q1752346 } UNION { resource:Q2096 property:P194 ?f . ?f rdf:type ontology:Q1752346 } }
Parliament of Nauru Edmonton City Council
2
action count
action union
action filter_type
action find
entity Nauru
relation legislative body
type assembly
action filter_type
action find
entity Edmonton
relation legislative body
type assembly
['Nauru', 'legislative body', {'concept': 'assembly'}] ['Edmonton', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { resource:Nauru property:legislative_body ?f . ?f rdf:type ontology:assembly } UNION { resource:Edmonton property:legislative_body ?f . ?f rdf:type ontology:assembly } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q82955 Q519157
P19 P106
Q502895
USER
Which people were born at Templin and have the profession of politician ?
AND((c(Q502895),P19,Q519157), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q519157
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q519157'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q519157 . ?c property:P106 resource:Q82955 . ?c rdf:type ontology:Q502895 }
politician Templin
action filter_type
action intersection
action find_reverse
entity Templin
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Templin'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Templin . ?c property:occupation resource:politician . ?c rdf:type ontology:common_name }
[]
common name
Q1612236 Q499848 Q69864 Q109566 Q1575754 Q1793611
SYSTEM
Hermann Neef, Andreas Otto, Dorothea Binz, Werner Pusch, Hanna Walz, Kurt Hannemann
Q1612236 Q499848 Q69864 Q109566 Q1575754 Q1793611
AND((c(Q502895),P19,Q519157), (c(Q502895),P106,Q82955))
action filter_type
action intersection
action find_reverse
entity Q519157
relation P19
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] were born at Templin and have the profession of politician
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q519157'], [{'concept': 'Q502895'}, 'P106', 'Q82955']]}
SELECT DISTINCT ?c WHERE { ?c property:P19 resource:Q519157 . ?c property:P106 resource:Q82955 . ?c rdf:type ontology:Q502895 }
Hermann Neef Andreas Otto Dorothea Binz Werner Pusch Hanna Walz Kurt Hannemann
Hermann Neef, Andreas Otto, Dorothea Binz, Werner Pusch, Hanna Walz and Kurt Hannemann were born at Templin and have the profession of politician
Hermann Neef Andreas Otto Dorothea Binz Werner Pusch Hanna Walz Kurt Hannemann
action filter_type
action intersection
action find_reverse
entity Templin
relation place of birth
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Templin'], [{'concept': 'common name'}, 'occupation', 'politician']]}
SELECT DISTINCT ?c WHERE { ?c property:place_of_birth resource:Templin . ?c property:occupation resource:politician . ?c rdf:type ontology:common_name }
[]