Simple Question (Direct)
Simple Question
Q15428609
P21
Q290
USER
Which sex does Wolfgang Brandstetter belong to ?
(Q15428609,P21,c(Q290))
action filter_type
action find
entity Q15428609
relation P21
type Q290
['Q15428609', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15428609 property:P21 ?h . ?h rdf:type ontology:Q290 }
Wolfgang Brandstetter
action filter_type
action find
entity Wolfgang Brandstetter
relation gender
type sex
['Wolfgang Brandstetter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Wolfgang_Brandstetter property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q15428609,P21,c(Q290))
action filter_type
action find
entity Q15428609
relation P21
type Q290
Wolfgang Brandstetter belongs to [ANSWER]
['Q15428609', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q15428609 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Wolfgang Brandstetter belongs to male
male
action filter_type
action find
entity Wolfgang Brandstetter
relation gender
type sex
['Wolfgang Brandstetter', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Wolfgang_Brandstetter property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15428609
P512
Q3412758
USER
Which qualification does that person hold ?
(Q6581097,P512,c(Q3412758))
action filter_type
action find
entity Q15428609
relation P512
type Q3412758
['Q6581097', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q15428609 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
Wolfgang Brandstetter
action filter_type
action find
entity Wolfgang Brandstetter
relation academic degree
type qualification
['male', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Wolfgang_Brandstetter property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
qualification
Q959320
SYSTEM
Doctor of Law
Q959320
(Q6581097,P512,c(Q3412758))
action filter_type
action find
entity Q15428609
relation P512
type Q3412758
That person holds a [ANSWER]
['Q6581097', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q15428609 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
Doctor of Law
That person holds a Doctor of Law
Doctor of Law
action filter_type
action find
entity Wolfgang Brandstetter
relation academic degree
type qualification
['male', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Wolfgang_Brandstetter property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q15428609
P106
Q28640 Q12737077
USER
How many professions and occupations have Wolfgang Brandstetter as his/her as a career ?
(Q15428609,P106,c(Q28640)) (Q15428609,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q15428609
relation P106
type Q28640
action filter_type
action find
entity Q15428609
relation P106
type Q12737077
['Q15428609', 'P106', {'concept': 'Q28640'}] ['Q15428609', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ontology:Q28640 . resource:Q15428609 property:P106 ?e } UNION { resource:Q15428609 property:P106 ?e . ?e rdf:type ontology:Q12737077 } }
Wolfgang Brandstetter
action count
action union
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type profession
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type occupation
['Wolfgang Brandstetter', 'occupation', {'concept': 'profession'}] ['Wolfgang Brandstetter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ontology:profession . resource:Wolfgang_Brandstetter property:occupation ?e } UNION { resource:Wolfgang_Brandstetter property:occupation ?e . ?e rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
1 professions and 2 occupations
Q82955 Q512345 Q1622272
(Q15428609,P106,c(Q28640)) (Q15428609,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q15428609
relation P106
type Q28640
action filter_type
action find
entity Q15428609
relation P106
type Q12737077
[ANSWER]
['Q15428609', 'P106', {'concept': 'Q28640'}] ['Q15428609', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ontology:Q28640 . resource:Q15428609 property:P106 ?e } UNION { resource:Q15428609 property:P106 ?e . ?e rdf:type ontology:Q12737077 } }
politician criminal defense lawyer university teacher
1 professions and 2 occupations
action count
action union
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type profession
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type occupation
['Wolfgang Brandstetter', 'occupation', {'concept': 'profession'}] ['Wolfgang Brandstetter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { ?e rdf:type ontology:profession . resource:Wolfgang_Brandstetter property:occupation ?e } UNION { resource:Wolfgang_Brandstetter property:occupation ?e . ?e rdf:type ontology:occupation } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15428609
P734
Q82799
USER
Who has the surname that person ?
action filter_type
action find
entity Q15428609
relation P734
type Q82799
SELECT DISTINCT ?y WHERE { resource:Q15428609 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Wolfgang Brandstetter
action filter_type
action find
entity Wolfgang Brandstetter
relation family name
type name
SELECT DISTINCT ?y WHERE { resource:Wolfgang_Brandstetter property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q24689090
SYSTEM
Brandstetter
Q24689090
action filter_type
action find
entity Q15428609
relation P734
type Q82799
[ANSWER] has the surname that person
SELECT DISTINCT ?y WHERE { resource:Q15428609 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Brandstetter
Brandstetter has the surname that person
Brandstetter
action filter_type
action find
entity Wolfgang Brandstetter
relation family name
type name
SELECT DISTINCT ?y WHERE { resource:Wolfgang_Brandstetter property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15428609
P106
Q12737077
USER
Which occupations are the professions of Wolfgang Brandstetter ?
(Q15428609,P106,c(Q12737077))
action filter_type
action find
entity Q15428609
relation P106
type Q12737077
['Q15428609', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q15428609 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Wolfgang Brandstetter
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type occupation
['Wolfgang Brandstetter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Wolfgang_Brandstetter property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q82955 Q1622272
SYSTEM
politician, university teacher
Q82955 Q1622272
(Q15428609,P106,c(Q12737077))
action filter_type
action find
entity Q15428609
relation P106
type Q12737077
The professions of Wolfgang Brandstetter are a [ANSWERS]
['Q15428609', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q15428609 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
politician university teacher
The professions of Wolfgang Brandstetter are a politician and university teacher
politician university teacher
action filter_type
action find
entity Wolfgang Brandstetter
relation occupation
type occupation
['Wolfgang Brandstetter', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Wolfgang_Brandstetter property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6206497
Q12737077
USER
And how about Joaquín Monserrat?
(Q6206497,P106,c(Q12737077))
action filter_type
action find
entity Q6206497
relation P106
type Q12737077
['Q6206497', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6206497 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Joaquín Monserrat
action filter_type
action find
entity Joaquín Monserrat
relation occupation
type occupation
['Joaquín Monserrat', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Joaquín_Monserrat property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q245068 Q947873
SYSTEM
comedian, television presenter
Q245068 Q947873
(Q6206497,P106,c(Q12737077))
action filter_type
action find
entity Q6206497
relation P106
type Q12737077
[ANSWERS]
['Q6206497', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q6206497 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
comedian television presenter
comedian television presenter
action filter_type
action find
entity Joaquín Monserrat
relation occupation
type occupation
['Joaquín Monserrat', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Joaquín_Monserrat property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4754746
P106
Q502895
USER
Do Andre Brown have those occupations as his/her means of employment ?
(Q4754746,P106,Q245068) (Q4754746,P106,Q947873)
action is_in
entity prev_answer
action find
entity Q4754746
relation P106
['Q4754746', 'P106', 'Q245068'] ['Q4754746', 'P106', 'Q947873']
ASK WHERE { VALUES ( ?x ) { ( resource:Q245068 ) ( resource:Q947873 ) } . resource:Q4754746 property:P106 ?x }
Andre Brown
action is_in
entity prev_answer
action find
entity Andre Brown
relation occupation
['Andre Brown', 'occupation', 'comedian'] ['Andre Brown', 'occupation', 'television presenter']
ASK WHERE { VALUES ( ?x ) { ( resource:comedian ) ( resource:television_presenter ) } . resource:Andre_Brown property:occupation ?x }
[]
common name
SYSTEM
NO
(Q4754746,P106,Q245068) (Q4754746,P106,Q947873)
action is_in
entity prev_answer
action find
entity Q4754746
relation P106
[ANSWER]
['Q4754746', 'P106', 'Q245068'] ['Q4754746', 'P106', 'Q947873']
ASK WHERE { VALUES ( ?x ) { ( resource:Q245068 ) ( resource:Q947873 ) } . resource:Q4754746 property:P106 ?x }
No
action is_in
entity prev_answer
action find
entity Andre Brown
relation occupation
['Andre Brown', 'occupation', 'comedian'] ['Andre Brown', 'occupation', 'television presenter']
ASK WHERE { VALUES ( ?x ) { ( resource:comedian ) ( resource:television_presenter ) } . resource:Andre_Brown property:occupation ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26699540 Q15428609
P27 P1001
Q1048835
USER
Which political territories are Wolfgang Brandstetter a civilian of or belong to jurisdiction of mayor of Foyos ?
OR((Q15428609,P27,c(Q1048835)), (Q26699540,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q15428609
relation P27
action find
entity Q26699540
relation P1001
type Q1048835
{'OR': [['Q15428609', 'P27', {'concept': 'Q1048835'}], ['Q26699540', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q15428609 property:P27 ?y } UNION { resource:Q26699540 property:P1001 ?y } } . ?y rdf:type ontology:Q1048835 }
mayor of Foyos Wolfgang Brandstetter
action filter_type
action union
action find
entity Wolfgang Brandstetter
relation country of citizenship
action find
entity mayor of Foyos
relation applies to jurisdiction
type political territorial entity
{'OR': [['Wolfgang Brandstetter', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Foyos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Wolfgang_Brandstetter property:country_of_citizenship ?y } UNION { resource:mayor_of_Foyos property:applies_to_jurisdiction ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q668117 Q40
SYSTEM
Foios, Austria
Q668117 Q40
OR((Q15428609,P27,c(Q1048835)), (Q26699540,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q15428609
relation P27
action find
entity Q26699540
relation P1001
type Q1048835
[ANSWERS] are Wolfgang Brandstetter a civilian of or belong to jurisdiction of mayor of Foyos
{'OR': [['Q15428609', 'P27', {'concept': 'Q1048835'}], ['Q26699540', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q15428609 property:P27 ?y } UNION { resource:Q26699540 property:P1001 ?y } } . ?y rdf:type ontology:Q1048835 }
Foios Austria
Foios and Austria are Wolfgang Brandstetter a civilian of or belong to jurisdiction of mayor of Foyos
Foios Austria
action filter_type
action union
action find
entity Wolfgang Brandstetter
relation country of citizenship
action find
entity mayor of Foyos
relation applies to jurisdiction
type political territorial entity
{'OR': [['Wolfgang Brandstetter', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Foyos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Wolfgang_Brandstetter property:country_of_citizenship ?y } UNION { resource:mayor_of_Foyos property:applies_to_jurisdiction ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q668117
P19
Q502895
USER
Which people were born at that political territory ?
(c(Q502895),P19,Q668117)
action filter_type
action find_reverse
entity Q668117
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q668117']
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q668117 . ?s rdf:type ontology:Q502895 }
Foios
action filter_type
action find_reverse
entity Foios
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Foios']
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Foios . ?s rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q668117
SYSTEM
Did you mean Foios ?
Q668117 Q40
(c(Q502895),P19,Q668117) (c(Q502895),P19,Q40)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q668117'] [{'concept': 'Q502895'}, 'P19', 'Q40']
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q668117 . ?s rdf:type ontology:Q502895 }
Foios Austria
Did you mean Foios ?
Foios
[{'concept': 'common name'}, 'place of birth', 'Foios'] [{'concept': 'common name'}, 'place of birth', 'Austria']
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Foios . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P19,Q668117)
[{'concept': 'Q502895'}, 'P19', 'Q668117']
[{'concept': 'common name'}, 'place of birth', 'Foios']
[]
Q3050261 Q11922987
SYSTEM
Vicente Ruiz Soro, Francisco Javier Sanchis Pascual
Q3050261 Q11922987
(c(Q502895),P19,Q668117)
action filter_type
action find_reverse
entity Q668117
relation P19
type Q502895
[ANSWERS] were born at that political territory
[{'concept': 'Q502895'}, 'P19', 'Q668117']
SELECT DISTINCT ?s WHERE { ?s property:P19 resource:Q668117 . ?s rdf:type ontology:Q502895 }
Vicente Ruiz Soro Francisco Javier Sanchis Pascual
Vicente Ruiz Soro and Francisco Javier Sanchis Pascual were born at that political territory
Vicente Ruiz Soro Francisco Javier Sanchis Pascual
action filter_type
action find_reverse
entity Foios
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Foios']
SELECT DISTINCT ?s WHERE { ?s property:place_of_birth resource:Foios . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q668117
P47
Q56061 Q1048835
USER
How many administrative territories or political territories share the border with Foios ?
(Q668117,P47,c(Q56061)) (Q668117,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q668117
relation P47
type Q56061
action filter_type
action find
entity Q668117
relation P47
type Q1048835
['Q668117', 'P47', {'concept': 'Q56061'}] ['Q668117', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Foios
action count
action union
action filter_type
action find
entity Foios
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Foios
relation shares border with
type political territorial entity
['Foios', 'shares border with', {'concept': 'administrative territorial entity'}] ['Foios', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
administrative territorial entity political territorial entity
SYSTEM
6
Q1771187 Q1771157 Q1993019 Q8818 Q1982784 Q1010291
(Q668117,P47,c(Q56061)) (Q668117,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q668117
relation P47
type Q56061
action filter_type
action find
entity Q668117
relation P47
type Q1048835
[ANSWER]
['Q668117', 'P47', {'concept': 'Q56061'}] ['Q668117', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q56061 ) ( ontology:Q1048835 ) } }
Albalat dels Sorells Alfara del Patriarca Meliana Valencia Vinalesa Moncada
6
action count
action union
action filter_type
action find
entity Foios
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Foios
relation shares border with
type political territorial entity
['Foios', 'shares border with', {'concept': 'administrative territorial entity'}] ['Foios', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]