Simple Question (Direct)
Simple Question
Q1504725
P512
Q3412758
USER
What degree or diploma was awarded to Georg Hertting ?
(Q1504725,P512,c(Q3412758))
action filter_type
action find
entity Q1504725
relation P512
type Q3412758
['Q1504725', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?a WHERE { resource:Q1504725 property:P512 ?a . ?a rdf:type ontology:Q3412758 }
Georg Hertting
action filter_type
action find
entity Georg Hertting
relation academic degree
type qualification
['Georg Hertting', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?a WHERE { resource:Georg_Hertting property:academic_degree ?a . ?a rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1504725,P512,c(Q3412758))
action filter_type
action find
entity Q1504725
relation P512
type Q3412758
The [ANSWER] was awarded to Georg Hertting
['Q1504725', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?a WHERE { resource:Q1504725 property:P512 ?a . ?a rdf:type ontology:Q3412758 }
doctoral degree
The doctoral degree was awarded to Georg Hertting
doctoral degree
action filter_type
action find
entity Georg Hertting
relation academic degree
type qualification
['Georg Hertting', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?a WHERE { resource:Georg_Hertting property:academic_degree ?a . ?a rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1504725
P21
Q290
USER
Which sex does Georg Hertting have ?
(Q1504725,P21,c(Q290))
action filter_type
action find
entity Q1504725
relation P21
type Q290
['Q1504725', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1504725 property:P21 ?o . ?o rdf:type ontology:Q290 }
Georg Hertting
action filter_type
action find
entity Georg Hertting
relation gender
type sex
['Georg Hertting', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Georg_Hertting property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1504725,P21,c(Q290))
action filter_type
action find
entity Q1504725
relation P21
type Q290
Georg Hertting has a [ANSWER]
['Q1504725', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q1504725 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Georg Hertting has a male
male
action filter_type
action find
entity Georg Hertting
relation gender
type sex
['Georg Hertting', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Georg_Hertting property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12036775
Q290
USER
And how about Michal Ondruš?
(Q12036775,P21,c(Q290))
action filter_type
action find
entity Q12036775
relation P21
type Q290
['Q12036775', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q12036775 property:P21 ?l . ?l rdf:type ontology:Q290 }
Michal Ondruš
action filter_type
action find
entity Michal Ondruš
relation gender
type sex
['Michal Ondruš', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Michal_Ondruš property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12036775,P21,c(Q290))
action filter_type
action find
entity Q12036775
relation P21
type Q290
[ANSWER]
['Q12036775', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q12036775 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Michal Ondruš
relation gender
type sex
['Michal Ondruš', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Michal_Ondruš property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12036775
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q12036775
relation P102
type Q7210356
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q12036775 property:P102 ?i }
Michal Ondruš
action filter_type
action find
entity Michal Ondruš
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Michal_Ondruš property:member_of_political_party ?i }
[]
political organization
Q1781065
SYSTEM
Communist party of Slovakia (1948)
Q1781065
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q12036775
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7210356 . resource:Q12036775 property:P102 ?i }
Communist party of Slovakia (1948)
That person is affiliated with Communist party of Slovakia (1948)
Communist party of Slovakia (1948)
action filter_type
action find
entity Michal Ondruš
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_organization . resource:Michal_Ondruš property:member_of_political_party ?i }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10800418 Q12036775
P106
Q12737077
USER
Which occupations are the professions of Michal Ondruš or Ngô Việt Trung ?
OR((Q12036775,P106,c(Q12737077)), (Q10800418,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q12036775
relation P106
action find
entity Q10800418
relation P106
type Q12737077
{'OR': [['Q12036775', 'P106', {'concept': 'Q12737077'}], ['Q10800418', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q12036775 property:P106 ?j } UNION { resource:Q10800418 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
Ngô Việt Trung Michal Ondruš
action filter_type
action union
action find
entity Michal Ondruš
relation occupation
action find
entity Ngô Việt Trung
relation occupation
type occupation
{'OR': [['Michal Ondruš', 'occupation', {'concept': 'occupation'}], ['Ngô Việt Trung', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Michal_Ondruš property:occupation ?j } UNION { resource:Ngô_Việt_Trung property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
occupation
Q486839 Q1622272 Q170790
SYSTEM
member of parliament, university teacher, mathematician
Q486839 Q1622272 Q170790
OR((Q12036775,P106,c(Q12737077)), (Q10800418,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q12036775
relation P106
action find
entity Q10800418
relation P106
type Q12737077
[ANSWERS] are the professions of Michal Ondruš or Ngô Việt Trung
{'OR': [['Q12036775', 'P106', {'concept': 'Q12737077'}], ['Q10800418', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q12036775 property:P106 ?j } UNION { resource:Q10800418 property:P106 ?j } } . ?j rdf:type ontology:Q12737077 }
member of parliament university teacher mathematician
Member of parliament, university teacher and mathematician are the professions of Michal Ondruš or Ngô Việt Trung
member of parliament university teacher mathematician
action filter_type
action union
action find
entity Michal Ondruš
relation occupation
action find
entity Ngô Việt Trung
relation occupation
type occupation
{'OR': [['Michal Ondruš', 'occupation', {'concept': 'occupation'}], ['Ngô Việt Trung', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Michal_Ondruš property:occupation ?j } UNION { resource:Ngô_Việt_Trung property:occupation ?j } } . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q486839
P361
Q1752346
USER
What is member of parliament a component of ?
(Q486839,P361,c(Q1752346))
action filter_type
action find
entity Q486839
relation P361
type Q1752346
['Q486839', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q486839 property:P361 ?l . ?l rdf:type ontology:Q1752346 }
member of parliament
action filter_type
action find
entity member of parliament
relation part of
type assembly
['member of parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:member_of_parliament property:part_of ?l . ?l rdf:type ontology:assembly }
[]
assembly
Q35749
SYSTEM
parliament
Q35749
(Q486839,P361,c(Q1752346))
action filter_type
action find
entity Q486839
relation P361
type Q1752346
Member of [ANSWER] a component of is of [ANSWER]
['Q486839', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q486839 property:P361 ?l . ?l rdf:type ontology:Q1752346 }
parliament
Member of parliament a component of is of parliament
parliament
action filter_type
action find
entity member of parliament
relation part of
type assembly
['member of parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:member_of_parliament property:part_of ?l . ?l rdf:type ontology:assembly }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1622272 Q4116214
P417
Q502895
USER
How many people are the patron saints of university teacher or accounting ?
(Q1622272,P417,c(Q502895)) (Q4116214,P417,c(Q502895))
action count
action union
action filter_type
action find
entity Q1622272
relation P417
type Q502895
action filter_type
action find
entity Q4116214
relation P417
type Q502895
['Q1622272', 'P417', {'concept': 'Q502895'}] ['Q4116214', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { resource:Q1622272 property:P417 ?q . ?q rdf:type ontology:Q502895 } UNION { resource:Q4116214 property:P417 ?q . ?q rdf:type ontology:Q502895 } }
university teacher accounting
action count
action union
action filter_type
action find
entity university teacher
relation patron saint
type common name
action filter_type
action find
entity accounting
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}] ['accounting', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { resource:university_teacher property:patron_saint ?q . ?q rdf:type ontology:common_name } UNION { resource:accounting property:patron_saint ?q . ?q rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q9438 Q43600
(Q1622272,P417,c(Q502895)) (Q4116214,P417,c(Q502895))
action count
action union
action filter_type
action find
entity Q1622272
relation P417
type Q502895
action filter_type
action find
entity Q4116214
relation P417
type Q502895
[ANSWER]
['Q1622272', 'P417', {'concept': 'Q502895'}] ['Q4116214', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { resource:Q1622272 property:P417 ?q . ?q rdf:type ontology:Q502895 } UNION { resource:Q4116214 property:P417 ?q . ?q rdf:type ontology:Q502895 } }
Thomas Aquinas Matthew the Apostle
2
action count
action union
action filter_type
action find
entity university teacher
relation patron saint
type common name
action filter_type
action find
entity accounting
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}] ['accounting', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { resource:university_teacher property:patron_saint ?q . ?q rdf:type ontology:common_name } UNION { resource:accounting property:patron_saint ?q . ?q rdf:type ontology:common_name } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q15617994
USER
Which administrative territories have exactly 1 assembly as their legislative body ?
(c(Q15617994),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?d rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1752346 . ?d property:P194 ?t } GROUP BY ?d } . FILTER ( ?s = 1 ) }
action equal
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:assembly . ?d property:legislative_body ?t } GROUP BY ?d } . FILTER ( ?s = 1 ) }
[]
assembly designation for an administrative territorial entity
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q804 Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q717 Q657 Q258 Q45 Q159 Q41 Q155 Q4628 Q1965 Q242 Q33 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q184 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q697 Q298 Q754 Q750 Q213 Q211 Q214 Q215 Q218 Q219 Q16110 Q79 Q77 Q811 Q1013 Q176 Q1952 Q869
(c(Q15617994),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[ANSWERS] have exactly 1 assembly as their legislative body
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?d rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1752346 . ?d property:P194 ?t } GROUP BY ?d } . FILTER ( ?s = 1 ) }
Panama Israel Peru India Argentina France Netherlands United Kingdom Venezuela Chad South Africa Portugal Russia Greece Brazil Faroe Islands New Brunswick Belize Finland Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Belarus Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Nauru Chile Trinidad and Tobago Bolivia Czech Republic Latvia Slovakia Slovenia Romania Bulgaria region of Italy Egypt Uruguay Nicaragua Lesotho Quebec Nova Scotia Thailand
Italy, Brazil and Russia have exactly 1 assembly as their legislative body
Italy Brazil Russia
action equal
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?s ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:assembly . ?d property:legislative_body ?t } GROUP BY ?d } . FILTER ( ?s = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q107536 Q1504725
P27
Q1048835
USER
Which political territories are the countries of citizenship of Georg Hertting or Otto Ernst Schweizer ?
OR((Q1504725,P27,c(Q1048835)), (Q107536,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1504725
relation P27
action find
entity Q107536
relation P27
type Q1048835
{'OR': [['Q1504725', 'P27', {'concept': 'Q1048835'}], ['Q107536', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1504725 property:P27 ?m } UNION { resource:Q107536 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Otto Ernst Schweizer Georg Hertting
action filter_type
action union
action find
entity Georg Hertting
relation country of citizenship
action find
entity Otto Ernst Schweizer
relation country of citizenship
type political territorial entity
{'OR': [['Georg Hertting', 'country of citizenship', {'concept': 'political territorial entity'}], ['Otto Ernst Schweizer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Georg_Hertting property:country_of_citizenship ?m } UNION { resource:Otto_Ernst_Schweizer property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q1504725,P27,c(Q1048835)), (Q107536,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1504725
relation P27
action find
entity Q107536
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Georg Hertting or Otto Ernst Schweizer
{'OR': [['Q1504725', 'P27', {'concept': 'Q1048835'}], ['Q107536', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1504725 property:P27 ?m } UNION { resource:Q107536 property:P27 ?m } } . ?m rdf:type ontology:Q1048835 }
Germany Austria
Germany and Austria are the countries of citizenship of Georg Hertting or Otto Ernst Schweizer
Germany Austria
action filter_type
action union
action find
entity Georg Hertting
relation country of citizenship
action find
entity Otto Ernst Schweizer
relation country of citizenship
type political territorial entity
{'OR': [['Georg Hertting', 'country of citizenship', {'concept': 'political territorial entity'}], ['Otto Ernst Schweizer', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Georg_Hertting property:country_of_citizenship ?m } UNION { resource:Otto_Ernst_Schweizer property:country_of_citizenship ?m } } . ?m rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q88157
P27
Q502895
USER
Are Norbert Falk a citizen of those political territories ?
(Q88157,P27,Q183) (Q88157,P27,Q40)
action is_in
entity prev_answer
action find
entity Q88157
relation P27
['Q88157', 'P27', 'Q183'] ['Q88157', 'P27', 'Q40']
ASK WHERE { resource:Q88157 property:P27 ?z . VALUES ( ?z ) { ( resource:Q183 ) ( resource:Q40 ) } }
Norbert Falk
action is_in
entity prev_answer
action find
entity Norbert Falk
relation country of citizenship
['Norbert Falk', 'country of citizenship', 'Germany'] ['Norbert Falk', 'country of citizenship', 'Austria']
ASK WHERE { resource:Norbert_Falk property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:Germany ) ( resource:Austria ) } }
[]
common name
SYSTEM
YES
(Q88157,P27,Q183) (Q88157,P27,Q40)
action is_in
entity prev_answer
action find
entity Q88157
relation P27
[ANSWER]
['Q88157', 'P27', 'Q183'] ['Q88157', 'P27', 'Q40']
ASK WHERE { resource:Q88157 property:P27 ?z . VALUES ( ?z ) { ( resource:Q183 ) ( resource:Q40 ) } }
Yes
action is_in
entity prev_answer
action find
entity Norbert Falk
relation country of citizenship
['Norbert Falk', 'country of citizenship', 'Germany'] ['Norbert Falk', 'country of citizenship', 'Austria']
ASK WHERE { resource:Norbert_Falk property:country_of_citizenship ?z . VALUES ( ?z ) { ( resource:Germany ) ( resource:Austria ) } }
[]