Simple Question (Direct)
Simple Question
Q333987
P101
Q336
USER
Which field does Edwin Howard Armstrong belong to ?
(Q333987,P101,c(Q336))
action filter_type
action find
entity Q333987
relation P101
type Q336
['Q333987', 'P101', {'concept': 'Q336'}]
SELECT DISTINCT ?n WHERE { resource:Q333987 property:P101 ?n . ?n rdf:type ontology:Q336 }
Edwin Howard Armstrong
action filter_type
action find
entity Edwin Howard Armstrong
relation field of work
type science
['Edwin Howard Armstrong', 'field of work', {'concept': 'science'}]
SELECT DISTINCT ?n WHERE { resource:Edwin_Howard_Armstrong property:field_of_work ?n . ?n rdf:type ontology:science }
[]
science
Q43035
SYSTEM
electrical engineering
Q43035
(Q333987,P101,c(Q336))
action filter_type
action find
entity Q333987
relation P101
type Q336
Edwin Howard Armstrong belongs to [ANSWER]
['Q333987', 'P101', {'concept': 'Q336'}]
SELECT DISTINCT ?n WHERE { resource:Q333987 property:P101 ?n . ?n rdf:type ontology:Q336 }
electrical engineering
Edwin Howard Armstrong belongs to electrical engineering
electrical engineering
action filter_type
action find
entity Edwin Howard Armstrong
relation field of work
type science
['Edwin Howard Armstrong', 'field of work', {'concept': 'science'}]
SELECT DISTINCT ?n WHERE { resource:Edwin_Howard_Armstrong property:field_of_work ?n . ?n rdf:type ontology:science }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q333987
P26
Q502895
USER
Which person is married to Edwin Howard Armstrong ?
(c(Q502895),P26,Q333987)
action filter_type
action find
entity Q333987
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q333987']
SELECT DISTINCT ?k WHERE { resource:Q333987 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Edwin Howard Armstrong
action filter_type
action find
entity Edwin Howard Armstrong
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Edwin Howard Armstrong']
SELECT DISTINCT ?k WHERE { resource:Edwin_Howard_Armstrong property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q16008604
SYSTEM
Esther Marion Armstrong
Q16008604
(c(Q502895),P26,Q333987)
action filter_type
action find
entity Q333987
relation P26
type Q502895
Into [ANSWER] is married to Edwin Howard Armstrong
[{'concept': 'Q502895'}, 'P26', 'Q333987']
SELECT DISTINCT ?k WHERE { resource:Q333987 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Esther Marion Armstrong
Into Esther Marion Armstrong is married to Edwin Howard Armstrong
Esther Marion Armstrong
action filter_type
action find
entity Edwin Howard Armstrong
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Edwin Howard Armstrong']
SELECT DISTINCT ?k WHERE { resource:Edwin_Howard_Armstrong property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16008604
P21
Q290
USER
What is the sex of that person ?
(Q16008604,P21,c(Q290))
action filter_type
action find
entity Q16008604
relation P21
type Q290
['Q16008604', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q16008604 property:P21 ?u . ?u rdf:type ontology:Q290 }
Esther Marion Armstrong
action filter_type
action find
entity Esther Marion Armstrong
relation gender
type sex
['Esther Marion Armstrong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Esther_Marion_Armstrong property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q16008604,P21,c(Q290))
action filter_type
action find
entity Q16008604
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q16008604', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q16008604 property:P21 ?u . ?u rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Esther Marion Armstrong
relation gender
type sex
['Esther Marion Armstrong', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Esther_Marion_Armstrong property:gender ?u . ?u rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes are the sex of more number of people than that sex ?
(c(Q502895),P21,c(Q290))
action count
action greater
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581072
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q6581072 property:P21 ?t . ?t rdf:type ontology:Q290 } } . FILTER ( ?g > ?z ) . { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:P21 ?q . ?p rdf:type ontology:Q502895 . ?q rdf:type ontology:Q290 } GROUP BY ?q } }
action count
action greater
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity female
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:female property:gender ?t . ?t rdf:type ontology:sex } } . FILTER ( ?g > ?z ) . { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:gender ?q . ?p rdf:type ontology:common_name . ?q rdf:type ontology:sex } GROUP BY ?q } }
[]
sex common name
SYSTEM
1
Q6581097
(c(Q502895),P21,c(Q290))
action count
action greater
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581072
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q6581072 property:P21 ?t . ?t rdf:type ontology:Q290 } } . FILTER ( ?g > ?z ) . { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:P21 ?q . ?p rdf:type ontology:Q502895 . ?q rdf:type ontology:Q290 } GROUP BY ?q } }
male
1
action count
action greater
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity female
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:female property:gender ?t . ?t rdf:type ontology:sex } } . FILTER ( ?g > ?z ) . { SELECT DISTINCT ?q ( COUNT ( ?p ) AS ?g ) WHERE { ?p property:gender ?q . ?p rdf:type ontology:common_name . ?q rdf:type ontology:sex } GROUP BY ?q } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q543402 Q333987
P27
Q15617994
USER
Which administrative territories are Edwin Howard Armstrong or Eva Sládeková an inhabitant of ?
OR((Q333987,P27,c(Q15617994)), (Q543402,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q333987
relation P27
action find
entity Q543402
relation P27
type Q15617994
{'OR': [['Q333987', 'P27', {'concept': 'Q15617994'}], ['Q543402', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?z property:P27 ?i . VALUES ( ?z ) { ( resource:Q333987 ) ( resource:Q543402 ) } } . ?i rdf:type ontology:Q15617994 }
Eva Sládeková Edwin Howard Armstrong
action filter_type
action union
action find
entity Edwin Howard Armstrong
relation country of citizenship
action find
entity Eva Sládeková
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edwin Howard Armstrong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Eva Sládeková', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?z property:country_of_citizenship ?i . VALUES ( ?z ) { ( resource:Edwin_Howard_Armstrong ) ( resource:Eva_Sládeková ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q214
SYSTEM
United States of America, Slovakia
Q30 Q214
OR((Q333987,P27,c(Q15617994)), (Q543402,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q333987
relation P27
action find
entity Q543402
relation P27
type Q15617994
The [ANSWERS] are Edwin Howard Armstrong or Eva Sládeková an inhabitant of
{'OR': [['Q333987', 'P27', {'concept': 'Q15617994'}], ['Q543402', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { ?z property:P27 ?i . VALUES ( ?z ) { ( resource:Q333987 ) ( resource:Q543402 ) } } . ?i rdf:type ontology:Q15617994 }
United States of America Slovakia
The United States of America and Slovakia are Edwin Howard Armstrong or Eva Sládeková an inhabitant of
United States of America Slovakia
action filter_type
action union
action find
entity Edwin Howard Armstrong
relation country of citizenship
action find
entity Eva Sládeková
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edwin Howard Armstrong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Eva Sládeková', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?z property:country_of_citizenship ?i . VALUES ( ?z ) { ( resource:Edwin_Howard_Armstrong ) ( resource:Eva_Sládeková ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q214
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q214,P85,c(Q484692))
action filter_type
action find
entity Q214
relation P85
type Q484692
['Q214', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { resource:Q214 property:P85 ?w . ?w rdf:type ontology:Q484692 }
Slovakia
action filter_type
action find
entity Slovakia
relation anthem
type hymn
['Slovakia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { resource:Slovakia property:anthem ?w . ?w rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q214
(Q30,P85,c(Q484692)) (Q214,P85,c(Q484692))
[ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}] ['Q214', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { resource:Q214 property:P85 ?w . ?w rdf:type ontology:Q484692 }
United States of America Slovakia
Did you mean United States of America ?
United States of America
['United States of America', 'anthem', {'concept': 'hymn'}] ['Slovakia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { resource:Slovakia property:anthem ?w . ?w rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant Slovakia. Could you tell me the answer for that?
(Q214,P85,c(Q484692))
Q214
['Q214', 'P85', {'concept': 'Q484692'}]
['Slovakia', 'anthem', {'concept': 'hymn'}]
[]
Q166944
SYSTEM
Nad Tatrou sa blýska
Q166944
(Q214,P85,c(Q484692))
action filter_type
action find
entity Q214
relation P85
type Q484692
And [ANSWER] is the anthem for that administrative territory
['Q214', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { resource:Q214 property:P85 ?w . ?w rdf:type ontology:Q484692 }
Nad Tatrou sa blýska
And Nad Tatrou sa blýska is the anthem for that administrative territory
Nad Tatrou sa blýska
action filter_type
action find
entity Slovakia
relation anthem
type hymn
['Slovakia', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { resource:Slovakia property:anthem ?w . ?w rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q62633
P85
Q484692
USER
How many hymns are the anthems for United States of America or Grand Duchy of Finland ?
(Q30,P85,c(Q484692)) (Q62633,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q30
relation P85
type Q484692
action filter_type
action find
entity Q62633
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}] ['Q62633', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { resource:Q30 property:P85 ?u . ?u rdf:type ontology:Q484692 } UNION { resource:Q62633 property:P85 ?u . ?u rdf:type ontology:Q484692 } }
United States of America Grand Duchy of Finland
action count
action union
action filter_type
action find
entity United States of America
relation anthem
type hymn
action filter_type
action find
entity Grand Duchy of Finland
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}] ['Grand Duchy of Finland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { resource:United_States_of_America property:anthem ?u . ?u rdf:type ontology:hymn } UNION { resource:Grand_Duchy_of_Finland property:anthem ?u . ?u rdf:type ontology:hymn } }
[]
hymn
SYSTEM
2
Q44696 Q162483
(Q30,P85,c(Q484692)) (Q62633,P85,c(Q484692))
action count
action union
action filter_type
action find
entity Q30
relation P85
type Q484692
action filter_type
action find
entity Q62633
relation P85
type Q484692
[ANSWER]
['Q30', 'P85', {'concept': 'Q484692'}] ['Q62633', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { resource:Q30 property:P85 ?u . ?u rdf:type ontology:Q484692 } UNION { resource:Q62633 property:P85 ?u . ?u rdf:type ontology:Q484692 } }
The Star-Spangled Banner Maamme
2
action count
action union
action filter_type
action find
entity United States of America
relation anthem
type hymn
action filter_type
action find
entity Grand Duchy of Finland
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}] ['Grand Duchy of Finland', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { resource:United_States_of_America property:anthem ?u . ?u rdf:type ontology:hymn } UNION { resource:Grand_Duchy_of_Finland property:anthem ?u . ?u rdf:type ontology:hymn } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1969862
P607
Q198
USER
Which battles did Boris Vannikov take part in ?
(Q1969862,P607,c(Q198))
action filter_type
action find
entity Q1969862
relation P607
type Q198
['Q1969862', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { resource:Q1969862 property:P607 ?i . ?i rdf:type ontology:Q198 }
Boris Vannikov
action filter_type
action find
entity Boris Vannikov
relation conflict
type war
['Boris Vannikov', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { resource:Boris_Vannikov property:conflict ?i . ?i rdf:type ontology:war }
[]
war
Q8683 Q362
SYSTEM
Cold War, World War II
Q8683 Q362
(Q1969862,P607,c(Q198))
action filter_type
action find
entity Q1969862
relation P607
type Q198
Boris Vannikov took part in [ANSWERS]
['Q1969862', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?i WHERE { resource:Q1969862 property:P607 ?i . ?i rdf:type ontology:Q198 }
Cold War World War II
Boris Vannikov took part in Cold War and World War II
Cold War World War II
action filter_type
action find
entity Boris Vannikov
relation conflict
type war
['Boris Vannikov', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?i WHERE { resource:Boris_Vannikov property:conflict ?i . ?i rdf:type ontology:war }
[]