Simple Question (Direct)
Simple Question
Q3493028
P22
Q502895
USER
Which male person was the parent of Spencer Walpole ?
(Q3493028,P22,c(Q502895))
action filter_type
action find
entity Q3493028
relation P22
type Q502895
['Q3493028', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3493028 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Spencer Walpole
action filter_type
action find
entity Spencer Walpole
relation father
type common name
['Spencer Walpole', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Spencer_Walpole property:father ?m . ?m rdf:type ontology:common_name }
[]
common name
Q7576083
SYSTEM
Spencer Horatio Walpole
Q7576083
(Q3493028,P22,c(Q502895))
action filter_type
action find
entity Q3493028
relation P22
type Q502895
[ANSWER] was the parent of Spencer Walpole
['Q3493028', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3493028 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Spencer Horatio Walpole
Spencer Horatio Walpole was the parent of Spencer Walpole
Spencer Horatio Walpole
action filter_type
action find
entity Spencer Walpole
relation father
type common name
['Spencer Walpole', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Spencer_Walpole property:father ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7576083
P735
Q82799
USER
What is forename of that person ?
(Q7576083,P735,c(Q82799))
action filter_type
action find
entity Q7576083
relation P735
type Q82799
['Q7576083', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q7576083 property:P735 ?v . ?v rdf:type ontology:Q82799 }
Spencer Horatio Walpole
action filter_type
action find
entity Spencer Horatio Walpole
relation given name
type name
['Spencer Horatio Walpole', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Spencer_Horatio_Walpole property:given_name ?v . ?v rdf:type ontology:name }
[]
name
Q16281695
SYSTEM
Spencer
Q16281695
(Q7576083,P735,c(Q82799))
action filter_type
action find
entity Q7576083
relation P735
type Q82799
Forename of that person is [ANSWER]
['Q7576083', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q7576083 property:P735 ?v . ?v rdf:type ontology:Q82799 }
Spencer
Forename of that person is Spencer
Spencer
action filter_type
action find
entity Spencer Horatio Walpole
relation given name
type name
['Spencer Horatio Walpole', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Spencer_Horatio_Walpole property:given_name ?v . ?v rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q16991186 Q7576083
P735
Q82799
USER
Or Atte Vatanen?
OR((Q7576083,P735,c(Q82799)), (Q16991186,P735,c(Q82799)))
action filter_type
action union
action find
entity Q7576083
relation P735
action find
entity Q16991186
relation P735
type Q82799
{'OR': [['Q7576083', 'P735', {'concept': 'Q82799'}], ['Q16991186', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q7576083 property:P735 ?v } UNION { resource:Q16991186 property:P735 ?v } } . ?v rdf:type ontology:Q82799 }
Atte Vatanen Spencer Horatio Walpole
action filter_type
action union
action find
entity Spencer Horatio Walpole
relation given name
action find
entity Atte Vatanen
relation given name
type name
{'OR': [['Spencer Horatio Walpole', 'given name', {'concept': 'name'}], ['Atte Vatanen', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Spencer_Horatio_Walpole property:given_name ?v } UNION { resource:Atte_Vatanen property:given_name ?v } } . ?v rdf:type ontology:name }
[]
name
Q16281695 Q11853300
SYSTEM
Spencer, Atte
Q16281695 Q11853300
OR((Q7576083,P735,c(Q82799)), (Q16991186,P735,c(Q82799)))
action filter_type
action union
action find
entity Q7576083
relation P735
action find
entity Q16991186
relation P735
type Q82799
[ANSWERS]
{'OR': [['Q7576083', 'P735', {'concept': 'Q82799'}], ['Q16991186', 'P735', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q7576083 property:P735 ?v } UNION { resource:Q16991186 property:P735 ?v } } . ?v rdf:type ontology:Q82799 }
Spencer Atte
Spencer Atte
action filter_type
action union
action find
entity Spencer Horatio Walpole
relation given name
action find
entity Atte Vatanen
relation given name
type name
{'OR': [['Spencer Horatio Walpole', 'given name', {'concept': 'name'}], ['Atte Vatanen', 'given name', {'concept': 'name'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Spencer_Horatio_Walpole property:given_name ?v } UNION { resource:Atte_Vatanen property:given_name ?v } } . ?v rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16991186
P21
Q290
USER
What is the sex of Atte Vatanen ?
(Q16281695,P21,c(Q290)) (Q11853300,P21,c(Q290))
action filter_type
action find
entity Q16991186
relation P21
type Q290
['Q16281695', 'P21', {'concept': 'Q290'}] ['Q11853300', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q16991186 property:P21 ?v . ?v rdf:type ontology:Q290 }
Atte Vatanen
action filter_type
action find
entity Atte Vatanen
relation gender
type sex
['Spencer', 'gender', {'concept': 'sex'}] ['Atte', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Atte_Vatanen property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16281695,P21,c(Q290)) (Q11853300,P21,c(Q290))
action filter_type
action find
entity Q16991186
relation P21
type Q290
The sex of Atte Vatanen is the [ANSWER]
['Q16281695', 'P21', {'concept': 'Q290'}] ['Q11853300', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q16991186 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Atte Vatanen is the male
male
action filter_type
action find
entity Atte Vatanen
relation gender
type sex
['Spencer', 'gender', {'concept': 'sex'}] ['Atte', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Atte_Vatanen property:gender ?v . ?v rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q17625919
P138
Q151885 Q486972 Q82799
USER
How many names are named after more number of concepts or human settlements than Du Moulin ?
(c(Q82799),P138,c(Q151885)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q151885
action find_tuple_counts
relation P138
type Q82799
type Q486972
action count
action filter_multi_types
action find
entity Q17625919
relation P138
type Q151885
type Q486972
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q151885'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q17625919 property:P138 ?v . { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q151885 ) } } } } . FILTER ( ?r > ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?r ) WHERE { VALUES ( ?u ) { ( ontology:Q151885 ) ( ontology:Q486972 ) } . ?y rdf:type ?u } GROUP BY ?i } }
Du Moulin
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type concept
action find_tuple_counts
relation named after
type name
type human settlement
action count
action filter_multi_types
action find
entity Du Moulin
relation named after
type concept
type human settlement
[{'concept': 'name'}, 'named after', [{'concept': 'concept'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Du_Moulin property:named_after ?v . { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:concept ) } } } } . FILTER ( ?r > ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?r ) WHERE { VALUES ( ?u ) { ( ontology:concept ) ( ontology:human_settlement ) } . ?y rdf:type ?u } GROUP BY ?i } }
[]
concept human settlement name
SYSTEM
2
Q27022433 Q13626156
(c(Q82799),P138,c(Q151885)|c(Q486972))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q151885
action find_tuple_counts
relation P138
type Q82799
type Q486972
action count
action filter_multi_types
action find
entity Q17625919
relation P138
type Q151885
type Q486972
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q151885'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q17625919 property:P138 ?v . { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:Q486972 ) ( ontology:Q151885 ) } } } } . FILTER ( ?r > ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?r ) WHERE { VALUES ( ?u ) { ( ontology:Q151885 ) ( ontology:Q486972 ) } . ?y rdf:type ?u } GROUP BY ?i } }
Danziger Ackermann
2
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type concept
action find_tuple_counts
relation named after
type name
type human settlement
action count
action filter_multi_types
action find
entity Du Moulin
relation named after
type concept
type human settlement
[{'concept': 'name'}, 'named after', [{'concept': 'concept'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Du_Moulin property:named_after ?v . { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:human_settlement ) ( ontology:concept ) } } } } . FILTER ( ?r > ?z ) . { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?r ) WHERE { VALUES ( ?u ) { ( ontology:concept ) ( ontology:human_settlement ) } . ?y rdf:type ?u } GROUP BY ?i } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1874869 Q7576083
P937
Q56061
USER
Which administrative territories did Spencer Horatio Walpole or Ludwig Philipp Aschoff work ?
OR((Q7576083,P937,c(Q56061)), (Q1874869,P937,c(Q56061)))
action filter_type
action union
action find
entity Q7576083
relation P937
action find
entity Q1874869
relation P937
type Q56061
{'OR': [['Q7576083', 'P937', {'concept': 'Q56061'}], ['Q1874869', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?w property:P937 ?b . VALUES ( ?w ) { ( resource:Q7576083 ) ( resource:Q1874869 ) } } . ?b rdf:type ontology:Q56061 }
Ludwig Philipp Aschoff Spencer Horatio Walpole
action filter_type
action union
action find
entity Spencer Horatio Walpole
relation work location
action find
entity Ludwig Philipp Aschoff
relation work location
type administrative territorial entity
{'OR': [['Spencer Horatio Walpole', 'work location', {'concept': 'administrative territorial entity'}], ['Ludwig Philipp Aschoff', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?w property:work_location ?b . VALUES ( ?w ) { ( resource:Spencer_Horatio_Walpole ) ( resource:Ludwig_Philipp_Aschoff ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2112 Q84
SYSTEM
Bielefeld, London
Q2112 Q84
OR((Q7576083,P937,c(Q56061)), (Q1874869,P937,c(Q56061)))
action filter_type
action union
action find
entity Q7576083
relation P937
action find
entity Q1874869
relation P937
type Q56061
Spencer Horatio Walpole or Ludwig Philipp Aschoff worked in [ANSWERS]
{'OR': [['Q7576083', 'P937', {'concept': 'Q56061'}], ['Q1874869', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?w property:P937 ?b . VALUES ( ?w ) { ( resource:Q7576083 ) ( resource:Q1874869 ) } } . ?b rdf:type ontology:Q56061 }
Bielefeld London
Spencer Horatio Walpole or Ludwig Philipp Aschoff worked in Bielefeld and London
Bielefeld London
action filter_type
action union
action find
entity Spencer Horatio Walpole
relation work location
action find
entity Ludwig Philipp Aschoff
relation work location
type administrative territorial entity
{'OR': [['Spencer Horatio Walpole', 'work location', {'concept': 'administrative territorial entity'}], ['Ludwig Philipp Aschoff', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?w property:work_location ?b . VALUES ( ?w ) { ( resource:Spencer_Horatio_Walpole ) ( resource:Ludwig_Philipp_Aschoff ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19348620 Q17625919
P138
Q39546
USER
Which tools are Du Moulin and Molenstraat named after ?
AND((Q17625919,P138,c(Q39546)), (Q19348620,P138,c(Q39546)))
action filter_type
action intersection
action find
entity Q17625919
relation P138
action find
entity Q19348620
relation P138
type Q39546
{'AND': [['Q17625919', 'P138', {'concept': 'Q39546'}], ['Q19348620', 'P138', {'concept': 'Q39546'}]]}
SELECT DISTINCT ?b WHERE { resource:Q17625919 property:P138 ?b . resource:Q19348620 property:P138 ?b . ?b rdf:type ontology:Q39546 }
Molenstraat Du Moulin
action filter_type
action intersection
action find
entity Du Moulin
relation named after
action find
entity Molenstraat
relation named after
type tool
{'AND': [['Du Moulin', 'named after', {'concept': 'tool'}], ['Molenstraat', 'named after', {'concept': 'tool'}]]}
SELECT DISTINCT ?b WHERE { resource:Du_Moulin property:named_after ?b . resource:Molenstraat property:named_after ?b . ?b rdf:type ontology:tool }
[]
tool
Q44494
SYSTEM
mill
Q44494
AND((Q17625919,P138,c(Q39546)), (Q19348620,P138,c(Q39546)))
action filter_type
action intersection
action find
entity Q17625919
relation P138
action find
entity Q19348620
relation P138
type Q39546
Du Moulin and Molenstraat are named after [ANSWER]
{'AND': [['Q17625919', 'P138', {'concept': 'Q39546'}], ['Q19348620', 'P138', {'concept': 'Q39546'}]]}
SELECT DISTINCT ?b WHERE { resource:Q17625919 property:P138 ?b . resource:Q19348620 property:P138 ?b . ?b rdf:type ontology:Q39546 }
mill
Du Moulin and Molenstraat are named after mill
mill
action filter_type
action intersection
action find
entity Du Moulin
relation named after
action find
entity Molenstraat
relation named after
type tool
{'AND': [['Du Moulin', 'named after', {'concept': 'tool'}], ['Molenstraat', 'named after', {'concept': 'tool'}]]}
SELECT DISTINCT ?b WHERE { resource:Du_Moulin property:named_after ?b . resource:Molenstraat property:named_after ?b . ?b rdf:type ontology:tool }
[]