Simple Question (Direct)
Simple Question
Q5948421
P39
Q12737077
USER
What was the position for which Lennart Levi was appointed ?
(Q5948421,P39,c(Q12737077))
action filter_type
action find
entity Q5948421
relation P39
type Q12737077
['Q5948421', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q5948421 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Lennart Levi
action filter_type
action find
entity Lennart Levi
relation position held
type occupation
['Lennart Levi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Lennart_Levi property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q5948421,P39,c(Q12737077))
action filter_type
action find
entity Q5948421
relation P39
type Q12737077
[ANSWER]
['Q5948421', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q5948421 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag
Member of the Riksdag
action filter_type
action find
entity Lennart Levi
relation position held
type occupation
['Lennart Levi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Lennart_Levi property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10655178
P106
Q502895
USER
Who has a job as that occupation ?
(c(Q502895),P106,Q10655178)
action filter_type
action find_reverse
entity Q10655178
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q10655178']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q10655178 . ?w rdf:type ontology:Q502895 }
Member of the Riksdag
action filter_type
action find_reverse
entity Member of the Riksdag
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of the Riksdag']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Member_of_the_Riksdag . ?w rdf:type ontology:common_name }
[]
common name
Q22340395
SYSTEM
Jonas Erici Dryander
Q22340395
(c(Q502895),P106,Q10655178)
action filter_type
action find_reverse
entity Q10655178
relation P106
type Q502895
[ANSWER] has a job as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q10655178']
SELECT DISTINCT ?w WHERE { ?w property:P106 resource:Q10655178 . ?w rdf:type ontology:Q502895 }
Jonas Erici Dryander
Jonas Erici Dryander has a job as that occupation
Jonas Erici Dryander
action filter_type
action find_reverse
entity Member of the Riksdag
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'Member of the Riksdag']
SELECT DISTINCT ?w WHERE { ?w property:occupation resource:Member_of_the_Riksdag . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q22340395 Q34
P27
Q15617994
USER
Is Sweden the native country of that person ?
(Q22340395,P27,Q34)
action is_in
entity Q34
action find
entity Q22340395
relation P27
['Q22340395', 'P27', 'Q34']
ASK WHERE { resource:Q22340395 property:P27 resource:Q34 }
Jonas Erici Dryander Sweden
action is_in
entity Sweden
action find
entity Jonas Erici Dryander
relation country of citizenship
['Jonas Erici Dryander', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Jonas_Erici_Dryander property:country_of_citizenship resource:Sweden }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q22340395,P27,Q34)
action is_in
entity Q34
action find
entity Q22340395
relation P27
[ANSWER]
['Q22340395', 'P27', 'Q34']
ASK WHERE { resource:Q22340395 property:P27 resource:Q34 }
Yes
action is_in
entity Sweden
action find
entity Jonas Erici Dryander
relation country of citizenship
['Jonas Erici Dryander', 'country of citizenship', 'Sweden']
ASK WHERE { resource:Jonas_Erici_Dryander property:country_of_citizenship resource:Sweden }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16064056 Q22340395
P106
Q12737077
USER
Which occupations are the job of Jonas Erici Dryander or Edgar Hartwig ?
OR((Q22340395,P106,c(Q12737077)), (Q16064056,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q22340395
relation P106
action find
entity Q16064056
relation P106
type Q12737077
{'OR': [['Q22340395', 'P106', {'concept': 'Q12737077'}], ['Q16064056', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q16064056 property:P106 ?s } UNION { resource:Q22340395 property:P106 ?s } } }
Edgar Hartwig Jonas Erici Dryander
action filter_type
action union
action find
entity Jonas Erici Dryander
relation occupation
action find
entity Edgar Hartwig
relation occupation
type occupation
{'OR': [['Jonas Erici Dryander', 'occupation', {'concept': 'occupation'}], ['Edgar Hartwig', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Edgar_Hartwig property:occupation ?s } UNION { resource:Jonas_Erici_Dryander property:occupation ?s } } }
[]
occupation
Q17489339 Q10655178 Q1622272 Q42603
SYSTEM
historian of the modern age, Member of the Riksdag, university teacher, priest
Q17489339 Q10655178 Q1622272 Q42603
OR((Q22340395,P106,c(Q12737077)), (Q16064056,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q22340395
relation P106
action find
entity Q16064056
relation P106
type Q12737077
[ANSWERS] are the job of Jonas Erici Dryander or Edgar Hartwig
{'OR': [['Q22340395', 'P106', {'concept': 'Q12737077'}], ['Q16064056', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q12737077 . { { resource:Q16064056 property:P106 ?s } UNION { resource:Q22340395 property:P106 ?s } } }
historian of the modern age Member of the Riksdag university teacher priest
Historian of the modern age, Member of the Riksdag, university teacher and priest are the job of Jonas Erici Dryander or Edgar Hartwig
historian of the modern age Member of the Riksdag university teacher priest
action filter_type
action union
action find
entity Jonas Erici Dryander
relation occupation
action find
entity Edgar Hartwig
relation occupation
type occupation
{'OR': [['Jonas Erici Dryander', 'occupation', {'concept': 'occupation'}], ['Edgar Hartwig', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:occupation . { { resource:Edgar_Hartwig property:occupation ?s } UNION { resource:Jonas_Erici_Dryander property:occupation ?s } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1622272
P425
Q2385804
USER
Who is associated with the field of occupation that one ?
(Q1622272,P425,c(Q2385804))
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
['Q1622272', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2385804 . resource:Q1622272 property:P425 ?y }
university teacher
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:educational_institution . resource:university_teacher property:field_of_this_occupation ?y }
[]
educational institution
Clarification for simple ques.
Q1622272
SYSTEM
Did you mean university teacher ?
Q17489339 Q10655178 Q1622272 Q42603
(Q17489339,P425,c(Q2385804)) (Q10655178,P425,c(Q2385804)) (Q1622272,P425,c(Q2385804)) (Q42603,P425,c(Q2385804))
[ANSWER]
['Q17489339', 'P425', {'concept': 'Q2385804'}] ['Q10655178', 'P425', {'concept': 'Q2385804'}] ['Q1622272', 'P425', {'concept': 'Q2385804'}] ['Q42603', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2385804 . resource:Q1622272 property:P425 ?y }
historian of the modern age Member of the Riksdag university teacher priest
Did you mean university teacher ?
university teacher
['historian of the modern age', 'field of this occupation', {'concept': 'educational institution'}] ['Member of the Riksdag', 'field of this occupation', {'concept': 'educational institution'}] ['university teacher', 'field of this occupation', {'concept': 'educational institution'}] ['priest', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:educational_institution . resource:university_teacher property:field_of_this_occupation ?y }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1622272,P425,c(Q2385804))
['Q1622272', 'P425', {'concept': 'Q2385804'}]
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
[]
Q3918
SYSTEM
university
Q3918
(Q1622272,P425,c(Q2385804))
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
Is [ANSWER] is associated with the field of occupation that one
['Q1622272', 'P425', {'concept': 'Q2385804'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2385804 . resource:Q1622272 property:P425 ?y }
university
Is university is associated with the field of occupation that one
university
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
['university teacher', 'field of this occupation', {'concept': 'educational institution'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:educational_institution . resource:university_teacher property:field_of_this_occupation ?y }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3918 Q6763272
P69
Q502895
USER
Was Mariette Sully educated at that educational institution ?
(Q6763272,P69,Q3918)
action is_in
entity Q6763272
action find
entity Q3918
relation P69
['Q6763272', 'P69', 'Q3918']
ASK WHERE { resource:Q3918 property:P69 resource:Q6763272 }
university Mariette Sully
action is_in
entity Mariette Sully
action find
entity university
relation educated at
['Mariette Sully', 'educated at', 'university']
ASK WHERE { resource:university property:educated_at resource:Mariette_Sully }
[]
common name
SYSTEM
NO
(Q6763272,P69,Q3918)
action is_in
entity Q6763272
action find
entity Q3918
relation P69
[ANSWER]
['Q6763272', 'P69', 'Q3918']
ASK WHERE { resource:Q3918 property:P69 resource:Q6763272 }
No
action is_in
entity Mariette Sully
action find
entity university
relation educated at
['Mariette Sully', 'educated at', 'university']
ASK WHERE { resource:university property:educated_at resource:Mariette_Sully }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3918
P463
Q12737077
USER
Who is a member of that educational institution ?
action filter_type
action find_reverse
entity Q3918
relation P463
type Q12737077
SELECT DISTINCT ?f WHERE { ?f property:P463 resource:Q3918 . ?f rdf:type ontology:Q12737077 }
university
action filter_type
action find_reverse
entity university
relation member of
type occupation
SELECT DISTINCT ?f WHERE { ?f property:member_of resource:university . ?f rdf:type ontology:occupation }
[]
occupation
Q1424543
SYSTEM
Bred a Lawyer
Q1424543
action filter_type
action find_reverse
entity Q3918
relation P463
type Q12737077
A member of that educational institution is a [ANSWER]
SELECT DISTINCT ?f WHERE { ?f property:P463 resource:Q3918 . ?f rdf:type ontology:Q12737077 }
Bred a Lawyer
A member of that educational institution is a Bred a Lawyer
Bred a Lawyer
action filter_type
action find_reverse
entity university
relation member of
type occupation
SELECT DISTINCT ?f WHERE { ?f property:member_of resource:university . ?f rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saints of around 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P417 ?m . ?b rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q502895 } GROUP BY ?m } }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:patron_saint ?m . ?b rdf:type ontology:occupation . ?m rdf:type ontology:common_name } GROUP BY ?m } }
[]
common name occupation
SYSTEM
10
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P417 ?m . ?b rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q502895 } GROUP BY ?m } }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
10
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { FILTER ( ?l = 2 ) . { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:patron_saint ?m . ?b rdf:type ontology:occupation . ?m rdf:type ontology:common_name } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10655178
P361
Q1752346
USER
What is Member of the Riksdag a component of ?
(Q10655178,P361,c(Q1752346))
action filter_type
action find
entity Q10655178
relation P361
type Q1752346
['Q10655178', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1752346 . resource:Q10655178 property:P361 ?v }
Member of the Riksdag
action filter_type
action find
entity Member of the Riksdag
relation part of
type assembly
['Member of the Riksdag', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:assembly . resource:Member_of_the_Riksdag property:part_of ?v }
[]
assembly
Q272930
SYSTEM
Parliament of Sweden
Q272930
(Q10655178,P361,c(Q1752346))
action filter_type
action find
entity Q10655178
relation P361
type Q1752346
The [ANSWER] is Member of the Riksdag a component of
['Q10655178', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1752346 . resource:Q10655178 property:P361 ?v }
Parliament of Sweden
The Parliament of Sweden is Member of the Riksdag a component of
Parliament of Sweden
action filter_type
action find
entity Member of the Riksdag
relation part of
type assembly
['Member of the Riksdag', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:assembly . resource:Member_of_the_Riksdag property:part_of ?v }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q856076
P805
Q15617994 Q1752346
USER
How many administrative territories are approximately the same number of assemblies a subject as municipality of Finland ?
(c(Q1752346),P805,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
action count
action filter_type
action find
entity Q856076
relation P805
type Q15617994
[{'concept': 'Q1752346'}, 'P805', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P805 ?y . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1752346 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q856076 property:P805 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?c ) }
municipality of Finland
action count
action approx
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
action count
action filter_type
action find
entity municipality of Finland
relation subject of
type designation for an administrative territorial entity
[{'concept': 'assembly'}, 'subject of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:subject_of ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:assembly } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:municipality_of_Finland property:subject_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?c ) }
[]
designation for an administrative territorial entity assembly
SYSTEM
2
Q928 Q856076
(c(Q1752346),P805,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P805
type Q15617994
type Q1752346
action count
action filter_type
action find
entity Q856076
relation P805
type Q15617994
[ANSWER]
[{'concept': 'Q1752346'}, 'P805', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:P805 ?y . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1752346 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q856076 property:P805 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?e = ?c ) }
Philippines municipality of Finland
2
action count
action approx
action find_reverse_tuple_counts
relation subject of
type designation for an administrative territorial entity
type assembly
action count
action filter_type
action find
entity municipality of Finland
relation subject of
type designation for an administrative territorial entity
[{'concept': 'assembly'}, 'subject of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?e ) WHERE { ?a property:subject_of ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:assembly } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:municipality_of_Finland property:subject_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?e = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q1048835
USER
Which political territories have around 1 assembly as their council ?
(c(Q1048835),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q1048835
type Q1752346
value 1
[{'concept': 'Q1048835'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?i ) WHERE { ?r property:P194 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1752346 } GROUP BY ?r } . FILTER ( ?i = 1 ) }
action approx
action find_tuple_counts
relation legislative body
type political territorial entity
type assembly
value 1
[{'concept': 'political territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?i ) WHERE { ?r property:legislative_body ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:assembly } GROUP BY ?r } . FILTER ( ?i = 1 ) }
[]
assembly political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q31747 Q785 Q193619 Q769 Q664 Q766 Q16 Q35 Q2594990 Q778 Q408 Q183 Q234 Q601252 Q781
(c(Q1048835),P194,c(Q1752346))
action approx
action find_tuple_counts
relation P194
type Q1048835
type Q1752346
value 1
[ANSWERS] have around 1 assembly as their council
[{'concept': 'Q1048835'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?i ) WHERE { ?r property:P194 ?t . ?r rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1752346 } GROUP BY ?r } . FILTER ( ?i = 1 ) }
Irish Free State Jersey Union of South Africa Grenada New Zealand Jamaica Canada Denmark Dominion of New Zealand The Bahamas Australia Germany Flemish Region Banovina of Croatia Antigua and Barbuda
Germany, Australia and Denmark have around 1 assembly as their council
Germany Australia Denmark
action approx
action find_tuple_counts
relation legislative body
type political territorial entity
type assembly
value 1
[{'concept': 'political territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?i ) WHERE { ?r property:legislative_body ?t . ?r rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:assembly } GROUP BY ?r } . FILTER ( ?i = 1 ) }
[]