Simple Question (Direct)
Simple Question
Q1668301
P21
Q290
USER
Which sex does Manfred Wegscheider possess ?
(Q1668301,P21,c(Q290))
action filter_type
action find
entity Q1668301
relation P21
type Q290
['Q1668301', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1668301 property:P21 ?k . ?k rdf:type ontology:Q290 }
Manfred Wegscheider
action filter_type
action find
entity Manfred Wegscheider
relation gender
type sex
['Manfred Wegscheider', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Manfred_Wegscheider property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1668301,P21,c(Q290))
action filter_type
action find
entity Q1668301
relation P21
type Q290
Manfred Wegscheider possesses a [ANSWER]
['Q1668301', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1668301 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
Manfred Wegscheider possesses a male
male
action filter_type
action find
entity Manfred Wegscheider
relation gender
type sex
['Manfred Wegscheider', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Manfred_Wegscheider property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1668301
P102
Q7210356
USER
Which party is Manfred Wegscheider affiliated with ?
(Q1668301,P102,c(Q7210356))
action filter_type
action find
entity Q1668301
relation P102
type Q7210356
['Q1668301', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q1668301 property:P102 ?k }
Manfred Wegscheider
action filter_type
action find
entity Manfred Wegscheider
relation member of political party
type political organization
['Manfred Wegscheider', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Manfred_Wegscheider property:member_of_political_party ?k }
[]
political organization
Q179111
SYSTEM
Social Democratic Party of Austria
Q179111
(Q1668301,P102,c(Q7210356))
action filter_type
action find
entity Q1668301
relation P102
type Q7210356
Manfred Wegscheider is affiliated with [ANSWER]
['Q1668301', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q7210356 . resource:Q1668301 property:P102 ?k }
Social Democratic Party of Austria
Manfred Wegscheider is affiliated with Social Democratic Party of Austria
Social Democratic Party of Austria
action filter_type
action find
entity Manfred Wegscheider
relation member of political party
type political organization
['Manfred Wegscheider', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_organization . resource:Manfred_Wegscheider property:member_of_political_party ?k }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1059511 Q1668301
P102
Q7210356
USER
Or Roger Karoutchi?
OR((Q1668301,P102,c(Q7210356)), (Q1059511,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q1668301
relation P102
action find
entity Q1059511
relation P102
type Q7210356
{'OR': [['Q1668301', 'P102', {'concept': 'Q7210356'}], ['Q1059511', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1668301 property:P102 ?m } UNION { resource:Q1059511 property:P102 ?m } } . ?m rdf:type ontology:Q7210356 }
Roger Karoutchi Manfred Wegscheider
action filter_type
action union
action find
entity Manfred Wegscheider
relation member of political party
action find
entity Roger Karoutchi
relation member of political party
type political organization
{'OR': [['Manfred Wegscheider', 'member of political party', {'concept': 'political organization'}], ['Roger Karoutchi', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Manfred_Wegscheider property:member_of_political_party ?m } UNION { resource:Roger_Karoutchi property:member_of_political_party ?m } } . ?m rdf:type ontology:political_organization }
[]
political organization
Q179111 Q1052584 Q173152
SYSTEM
Social Democratic Party of Austria, Rally for the Republic, Union for a Popular Movement
Q179111 Q1052584 Q173152
OR((Q1668301,P102,c(Q7210356)), (Q1059511,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q1668301
relation P102
action find
entity Q1059511
relation P102
type Q7210356
[ANSWERS]
{'OR': [['Q1668301', 'P102', {'concept': 'Q7210356'}], ['Q1059511', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q1668301 property:P102 ?m } UNION { resource:Q1059511 property:P102 ?m } } . ?m rdf:type ontology:Q7210356 }
Social Democratic Party of Austria Rally for the Republic Union for a Popular Movement
Social Democratic Party of Austria Rally for the Republic Union for a Popular Movement
action filter_type
action union
action find
entity Manfred Wegscheider
relation member of political party
action find
entity Roger Karoutchi
relation member of political party
type political organization
{'OR': [['Manfred Wegscheider', 'member of political party', {'concept': 'political organization'}], ['Roger Karoutchi', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Manfred_Wegscheider property:member_of_political_party ?m } UNION { resource:Roger_Karoutchi property:member_of_political_party ?m } } . ?m rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q179111 Q1052584 Q173152
P488
Q502895
USER
Who were the chairpersons of those political organizations ?
(Q179111,P488,c(Q502895)) (Q1052584,P488,c(Q502895)) (Q173152,P488,c(Q502895))
action filter_type
action find
entity prev_answer
relation P488
type Q502895
['Q179111', 'P488', {'concept': 'Q502895'}] ['Q1052584', 'P488', {'concept': 'Q502895'}] ['Q173152', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?k property:P488 ?n . ?n rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q179111 ) ( resource:Q1052584 ) ( resource:Q173152 ) } }
Social Democratic Party of Austria Rally for the Republic Union for a Popular Movement
action filter_type
action find
entity prev_answer
relation chairperson
type common name
['Social Democratic Party of Austria', 'chairperson', {'concept': 'common name'}] ['Rally for the Republic', 'chairperson', {'concept': 'common name'}] ['Union for a Popular Movement', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?k property:chairperson ?n . ?n rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Social_Democratic_Party_of_Austria ) ( resource:Rally_for_the_Republic ) ( resource:Union_for_a_Popular_Movement ) } }
[]
common name
Q2105 Q329 Q62354
SYSTEM
Jacques Chirac, Nicolas Sarkozy, Jean-François Copé
Q53282 Q2105 Q62354 Q329
(Q179111,P488,c(Q502895)) (Q1052584,P488,c(Q502895)) (Q173152,P488,c(Q502895))
action filter_type
action find
entity prev_answer
relation P488
type Q502895
The chairpersons of those political organizations were [ANSWERS]
['Q179111', 'P488', {'concept': 'Q502895'}] ['Q1052584', 'P488', {'concept': 'Q502895'}] ['Q173152', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?k property:P488 ?n . ?n rdf:type ontology:Q502895 . VALUES ( ?k ) { ( resource:Q179111 ) ( resource:Q1052584 ) ( resource:Q173152 ) } }
Werner Faymann Jacques Chirac Jean-François Copé Nicolas Sarkozy
The chairpersons of those political organizations were Jacques Chirac, Nicolas Sarkozy and Jean-François Copé
Jacques Chirac Nicolas Sarkozy Jean-François Copé
action filter_type
action find
entity prev_answer
relation chairperson
type common name
['Social Democratic Party of Austria', 'chairperson', {'concept': 'common name'}] ['Rally for the Republic', 'chairperson', {'concept': 'common name'}] ['Union for a Popular Movement', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?k property:chairperson ?n . ?n rdf:type ontology:common_name . VALUES ( ?k ) { ( resource:Social_Democratic_Party_of_Austria ) ( resource:Rally_for_the_Republic ) ( resource:Union_for_a_Popular_Movement ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q62354
P40
Q502895
USER
Which person has that one as a child ?
(c(Q502895),P40,Q62354)
action filter_type
action find_reverse
entity Q62354
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q62354']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q62354 . ?e rdf:type ontology:Q502895 }
Jean-François Copé
action filter_type
action find_reverse
entity Jean-François Copé
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jean-François Copé']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Jean-François_Copé . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2105
SYSTEM
Did you mean Jacques Chirac ?
Q2105 Q329 Q62354
(c(Q502895),P40,Q2105) (c(Q502895),P40,Q329) (c(Q502895),P40,Q62354)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q2105'] [{'concept': 'Q502895'}, 'P40', 'Q329'] [{'concept': 'Q502895'}, 'P40', 'Q62354']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q62354 . ?e rdf:type ontology:Q502895 }
Jacques Chirac Nicolas Sarkozy Jean-François Copé
Did you mean Jacques Chirac ?
Jacques Chirac
[{'concept': 'common name'}, 'child', 'Jacques Chirac'] [{'concept': 'common name'}, 'child', 'Nicolas Sarkozy'] [{'concept': 'common name'}, 'child', 'Jean-François Copé']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Jean-François_Copé . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Jean-François Copé. Could you tell me the answer for that?
(c(Q502895),P40,Q62354)
Q62354
[{'concept': 'Q502895'}, 'P40', 'Q62354']
[{'concept': 'common name'}, 'child', 'Jean-François Copé']
[]
Q3440008
SYSTEM
Roland Copé
Q3440008
(c(Q502895),P40,Q62354)
action filter_type
action find_reverse
entity Q62354
relation P40
type Q502895
[ANSWER] has that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q62354']
SELECT DISTINCT ?e WHERE { ?e property:P40 resource:Q62354 . ?e rdf:type ontology:Q502895 }
Roland Copé
Roland Copé has that one as a child
Roland Copé
action filter_type
action find_reverse
entity Jean-François Copé
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jean-François Copé']
SELECT DISTINCT ?e WHERE { ?e property:child resource:Jean-François_Copé . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3440008
P40
Q502895
USER
Who is a child of that one ?
(Q3440008,P40,c(Q502895))
action filter_type
action find
entity Q3440008
relation P40
type Q502895
['Q3440008', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q3440008 property:P40 ?n }
Roland Copé
action filter_type
action find
entity Roland Copé
relation child
type common name
['Roland Copé', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Roland_Copé property:child ?n }
[]
common name
Q62354
SYSTEM
Jean-François Copé
Q62354
(Q3440008,P40,c(Q502895))
action filter_type
action find
entity Q3440008
relation P40
type Q502895
A child of that one is born [ANSWER]
['Q3440008', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q3440008 property:P40 ?n }
Jean-François Copé
A child of that one is born Jean-François Copé
Jean-François Copé
action filter_type
action find
entity Roland Copé
relation child
type common name
['Roland Copé', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Roland_Copé property:child ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62354
P108
Q3914
USER
Which school does that person work for ?
(Q62354,P108,c(Q3914))
action filter_type
action find
entity Q62354
relation P108
type Q3914
['Q62354', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?q WHERE { resource:Q62354 property:P108 ?q . ?q rdf:type ontology:Q3914 }
Jean-François Copé
action filter_type
action find
entity Jean-François Copé
relation employer
type school
['Jean-François Copé', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?q WHERE { resource:Jean-François_Copé property:employer ?q . ?q rdf:type ontology:school }
[]
school
Q859363
SYSTEM
Sciences Po
Q859363
(Q62354,P108,c(Q3914))
action filter_type
action find
entity Q62354
relation P108
type Q3914
That person works at [ANSWER]
['Q62354', 'P108', {'concept': 'Q3914'}]
SELECT DISTINCT ?q WHERE { resource:Q62354 property:P108 ?q . ?q rdf:type ontology:Q3914 }
Sciences Po
That person works at Sciences Po
Sciences Po
action filter_type
action find
entity Jean-François Copé
relation employer
type school
['Jean-François Copé', 'employer', {'concept': 'school'}]
SELECT DISTINCT ?q WHERE { resource:Jean-François_Copé property:employer ?q . ?q rdf:type ontology:school }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q62354
P106
Q28640 Q12737077
USER
How many professions and occupations have Jean-François Copé as his/her as a career ?
(Q62354,P106,c(Q28640)) (Q62354,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q62354
relation P106
type Q28640
action filter_type
action find
entity Q62354
relation P106
type Q12737077
['Q62354', 'P106', {'concept': 'Q28640'}] ['Q62354', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
Jean-François Copé
action count
action union
action filter_type
action find
entity Jean-François Copé
relation occupation
type profession
action filter_type
action find
entity Jean-François Copé
relation occupation
type occupation
['Jean-François Copé', 'occupation', {'concept': 'profession'}] ['Jean-François Copé', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
profession occupation
SYSTEM
1 professions and 3 occupations
Q188094 Q82955 Q1622272 Q40348
(Q62354,P106,c(Q28640)) (Q62354,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q62354
relation P106
type Q28640
action filter_type
action find
entity Q62354
relation P106
type Q12737077
[ANSWER]
['Q62354', 'P106', {'concept': 'Q28640'}] ['Q62354', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:Q28640 ) ( ontology:Q12737077 ) } }
economist politician university teacher lawyer
1 professions and 3 occupations
action count
action union
action filter_type
action find
entity Jean-François Copé
relation occupation
type profession
action filter_type
action find
entity Jean-François Copé
relation occupation
type occupation
['Jean-François Copé', 'occupation', {'concept': 'profession'}] ['Jean-François Copé', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?e ) WHERE { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:profession ) ( ontology:occupation ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1766980 Q1668301
P47 P27
Q1048835
USER
Which political territories are Manfred Wegscheider a civilian of or have a shared border with Verdú ?
OR((Q1668301,P27,c(Q1048835)), (Q1766980,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1668301
relation P27
action find
entity Q1766980
relation P47
type Q1048835
{'OR': [['Q1668301', 'P27', {'concept': 'Q1048835'}], ['Q1766980', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1668301 property:P27 ?a } UNION { resource:Q1766980 property:P47 ?a } } . ?a rdf:type ontology:Q1048835 }
Verdú Manfred Wegscheider
action filter_type
action union
action find
entity Manfred Wegscheider
relation country of citizenship
action find
entity Verdú
relation shares border with
type political territorial entity
{'OR': [['Manfred Wegscheider', 'country of citizenship', {'concept': 'political territorial entity'}], ['Verdú', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Manfred_Wegscheider property:country_of_citizenship ?a } UNION { resource:Verdú property:shares_border_with ?a } } . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1905529 Q1769563 Q40 Q752137 Q378716 Q1902046 Q1902128 Q1902157 Q1901194 Q1905672
SYSTEM
Sant Martí de Riucorb, Ciutadilla, Austria, Tàrrega, Nalec, Preixana, Guimerà, Vilagrassa, Granyena de Segarra, Montornès de Segarra
Q1905529 Q1769563 Q40 Q752137 Q378716 Q1902046 Q1902128 Q1902157 Q1901194 Q1905672
OR((Q1668301,P27,c(Q1048835)), (Q1766980,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1668301
relation P27
action find
entity Q1766980
relation P47
type Q1048835
[ANSWERS] are Manfred Wegscheider a civilian of or have a shared border with Verdú
{'OR': [['Q1668301', 'P27', {'concept': 'Q1048835'}], ['Q1766980', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1668301 property:P27 ?a } UNION { resource:Q1766980 property:P47 ?a } } . ?a rdf:type ontology:Q1048835 }
Sant Martí de Riucorb Ciutadilla Austria Tàrrega Nalec Preixana Guimerà Vilagrassa Granyena de Segarra Montornès de Segarra
Sant Martí de Riucorb, Ciutadilla, Austria, Tàrrega, Nalec, Preixana, Guimerà, Vilagrassa, Granyena de Segarra and Montornès de Segarra are Manfred Wegscheider a civilian of or have a shared border with Verdú
Sant Martí de Riucorb Ciutadilla Austria Tàrrega Nalec Preixana Guimerà Vilagrassa Granyena de Segarra Montornès de Segarra
action filter_type
action union
action find
entity Manfred Wegscheider
relation country of citizenship
action find
entity Verdú
relation shares border with
type political territorial entity
{'OR': [['Manfred Wegscheider', 'country of citizenship', {'concept': 'political territorial entity'}], ['Verdú', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Manfred_Wegscheider property:country_of_citizenship ?a } UNION { resource:Verdú property:shares_border_with ?a } } . ?a rdf:type ontology:political_territorial_entity }
[]