Simple Question (Direct)
Simple Question
Q1744824
P102
Q7278
USER
Which political parties are Klaus-Peter Schulz a member of ?
(Q1744824,P102,c(Q7278))
action filter_type
action find
entity Q1744824
relation P102
type Q7278
['Q1744824', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q1744824 property:P102 ?f . ?f rdf:type ontology:Q7278 }
Klaus-Peter Schulz
action filter_type
action find
entity Klaus-Peter Schulz
relation member of political party
type political party
['Klaus-Peter Schulz', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Klaus-Peter_Schulz property:member_of_political_party ?f . ?f rdf:type ontology:political_party }
[]
political party
Q49762 Q49768
SYSTEM
Christian Democratic Union, Social Democratic Party of Germany
Q49762 Q49768
(Q1744824,P102,c(Q7278))
action filter_type
action find
entity Q1744824
relation P102
type Q7278
[ANSWERS] are Klaus-Peter Schulz a member of
['Q1744824', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q1744824 property:P102 ?f . ?f rdf:type ontology:Q7278 }
Christian Democratic Union Social Democratic Party of Germany
Christian Democratic Union and Social Democratic Party of Germany are Klaus-Peter Schulz a member of
Christian Democratic Union Social Democratic Party of Germany
action filter_type
action find
entity Klaus-Peter Schulz
relation member of political party
type political party
['Klaus-Peter Schulz', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Klaus-Peter_Schulz property:member_of_political_party ?f . ?f rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1744824
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q49762,P39,c(Q12737077)) (Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q1744824
relation P39
type Q12737077
['Q49762', 'P39', {'concept': 'Q12737077'}] ['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1744824 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Klaus-Peter Schulz
action filter_type
action find
entity Klaus-Peter Schulz
relation position held
type occupation
['Christian Democratic Union', 'position held', {'concept': 'occupation'}] ['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Klaus-Peter_Schulz property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q1939555 Q17481175 Q18327335
SYSTEM
member of the German Bundestag, Member of the Landtag of Baden-Württemberg, Member of the Abgeordnetenhaus of Berlin
Q1939555 Q27169 Q17481175 Q18327335
(Q49762,P39,c(Q12737077)) (Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q1744824
relation P39
type Q12737077
[ANSWERS] were the positions occupied by that person
['Q49762', 'P39', {'concept': 'Q12737077'}] ['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1744824 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
member of the German Bundestag member of the European Parliament Member of the Landtag of Baden-Württemberg Member of the Abgeordnetenhaus of Berlin
Member of the German Bundestag, Member of the Landtag of Baden-Württemberg and Member of the Abgeordnetenhaus of Berlin were the positions occupied by that person
member of the German Bundestag Member of the Landtag of Baden-Württemberg Member of the Abgeordnetenhaus of Berlin
action filter_type
action find
entity Klaus-Peter Schulz
relation position held
type occupation
['Christian Democratic Union', 'position held', {'concept': 'occupation'}] ['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Klaus-Peter_Schulz property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q26988400
P39
Q502895
USER
Were James Forsyth responsible for occupying the position of those occupations ?
(Q26988400,P39,Q1939555) (Q26988400,P39,Q17481175) (Q26988400,P39,Q18327335)
action is_in
entity prev_answer
action find
entity Q26988400
relation P39
['Q26988400', 'P39', 'Q1939555'] ['Q26988400', 'P39', 'Q17481175'] ['Q26988400', 'P39', 'Q18327335']
ASK WHERE { VALUES ( ?k ) { ( resource:Q1939555 ) ( resource:Q27169 ) ( resource:Q17481175 ) } . resource:Q26988400 property:P39 ?k }
James Forsyth
action is_in
entity prev_answer
action find
entity James Forsyth
relation position held
['James Forsyth', 'position held', 'member of the German Bundestag'] ['James Forsyth', 'position held', 'Member of the Landtag of Baden-Württemberg'] ['James Forsyth', 'position held', 'Member of the Abgeordnetenhaus of Berlin']
ASK WHERE { VALUES ( ?k ) { ( resource:member_of_the_German_Bundestag ) ( resource:member_of_the_European_Parliament ) ( resource:Member_of_the_Landtag_of_Baden-Württemberg ) } . resource:James_Forsyth property:position_held ?k }
[]
common name
SYSTEM
NO
(Q26988400,P39,Q1939555) (Q26988400,P39,Q17481175) (Q26988400,P39,Q18327335)
action is_in
entity prev_answer
action find
entity Q26988400
relation P39
[ANSWER]
['Q26988400', 'P39', 'Q1939555'] ['Q26988400', 'P39', 'Q17481175'] ['Q26988400', 'P39', 'Q18327335']
ASK WHERE { VALUES ( ?k ) { ( resource:Q1939555 ) ( resource:Q27169 ) ( resource:Q17481175 ) } . resource:Q26988400 property:P39 ?k }
No
action is_in
entity prev_answer
action find
entity James Forsyth
relation position held
['James Forsyth', 'position held', 'member of the German Bundestag'] ['James Forsyth', 'position held', 'Member of the Landtag of Baden-Württemberg'] ['James Forsyth', 'position held', 'Member of the Abgeordnetenhaus of Berlin']
ASK WHERE { VALUES ( ?k ) { ( resource:member_of_the_German_Bundestag ) ( resource:member_of_the_European_Parliament ) ( resource:Member_of_the_Landtag_of_Baden-Württemberg ) } . resource:James_Forsyth property:position_held ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1744824
P937
Q56061
USER
What are the work locations of Klaus-Peter Schulz ?
(Q1744824,P937,c(Q56061))
action filter_type
action find
entity Q1744824
relation P937
type Q56061
['Q1744824', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1744824 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Klaus-Peter Schulz
action filter_type
action find
entity Klaus-Peter Schulz
relation work location
type administrative territorial entity
['Klaus-Peter Schulz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Klaus-Peter_Schulz property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q239 Q1022
SYSTEM
Berlin, Brussels, Stuttgart
Q64 Q586 Q239 Q1022
(Q1744824,P937,c(Q56061))
action filter_type
action find
entity Q1744824
relation P937
type Q56061
The work locations of Klaus-Peter Schulz are in [ANSWERS]
['Q1744824', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1744824 property:P937 ?s . ?s rdf:type ontology:Q56061 }
Berlin Bonn Brussels Stuttgart
The work locations of Klaus-Peter Schulz are in Berlin, Brussels and Stuttgart
Berlin Brussels Stuttgart
action filter_type
action find
entity Klaus-Peter Schulz
relation work location
type administrative territorial entity
['Klaus-Peter Schulz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Klaus-Peter_Schulz property:work_location ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q8960749
Q56061
USER
And also tell me about Facundo de los Ríos Portilla?
(Q8960749,P937,c(Q56061))
action filter_type
action find
entity Q8960749
relation P937
type Q56061
['Q8960749', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q8960749 property:P937 ?p }
Facundo de los Ríos Portilla
action filter_type
action find
entity Facundo de los Ríos Portilla
relation work location
type administrative territorial entity
['Facundo de los Ríos Portilla', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Facundo_de_los_Ríos_Portilla property:work_location ?p }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q8960749,P937,c(Q56061))
action filter_type
action find
entity Q8960749
relation P937
type Q56061
[ANSWER]
['Q8960749', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q8960749 property:P937 ?p }
Madrid
Madrid
action filter_type
action find
entity Facundo de los Ríos Portilla
relation work location
type administrative territorial entity
['Facundo de los Ríos Portilla', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Facundo_de_los_Ríos_Portilla property:work_location ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q8960749 Q543455
P21
Q290
USER
How many sexes are the sex of Facundo de los Ríos Portilla or Perfume: Complete Best ?
(Q8960749,P21,c(Q290)) (Q543455,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q8960749
relation P21
type Q290
action filter_type
action find
entity Q543455
relation P21
type Q290
['Q8960749', 'P21', {'concept': 'Q290'}] ['Q543455', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { resource:Q8960749 property:P21 ?u . ?u rdf:type ontology:Q290 } UNION { resource:Q543455 property:P21 ?u . ?u rdf:type ontology:Q290 } }
Facundo de los Ríos Portilla Perfume: Complete Best
action count
action union
action filter_type
action find
entity Facundo de los Ríos Portilla
relation gender
type sex
action filter_type
action find
entity Perfume: Complete Best
relation gender
type sex
['Facundo de los Ríos Portilla', 'gender', {'concept': 'sex'}] ['Perfume: Complete Best', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { resource:Facundo_de_los_Ríos_Portilla property:gender ?u . ?u rdf:type ontology:sex } UNION { resource:Perfume:_Complete_Best property:gender ?u . ?u rdf:type ontology:sex } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q8960749,P21,c(Q290)) (Q543455,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q8960749
relation P21
type Q290
action filter_type
action find
entity Q543455
relation P21
type Q290
[ANSWER]
['Q8960749', 'P21', {'concept': 'Q290'}] ['Q543455', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { resource:Q8960749 property:P21 ?u . ?u rdf:type ontology:Q290 } UNION { resource:Q543455 property:P21 ?u . ?u rdf:type ontology:Q290 } }
male female
2
action count
action union
action filter_type
action find
entity Facundo de los Ríos Portilla
relation gender
type sex
action filter_type
action find
entity Perfume: Complete Best
relation gender
type sex
['Facundo de los Ríos Portilla', 'gender', {'concept': 'sex'}] ['Perfume: Complete Best', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { { resource:Facundo_de_los_Ríos_Portilla property:gender ?u . ?u rdf:type ontology:sex } UNION { resource:Perfume:_Complete_Best property:gender ?u . ?u rdf:type ontology:sex } }
[]