Simple Question (Direct)
Simple Question
Q2301899
P27
Q15617994
USER
Which administrative territory is the native country of Jean-François Michel ?
(Q2301899,P27,c(Q15617994))
action filter_type
action find
entity Q2301899
relation P27
type Q15617994
['Q2301899', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q2301899 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Jean-François Michel
action filter_type
action find
entity Jean-François Michel
relation country of citizenship
type designation for an administrative territorial entity
['Jean-François Michel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Jean-François_Michel property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q2301899,P27,c(Q15617994))
action filter_type
action find
entity Q2301899
relation P27
type Q15617994
[ANSWER] is the native country of Jean-François Michel
['Q2301899', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q2301899 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Switzerland
Switzerland is the native country of Jean-François Michel
Switzerland
action filter_type
action find
entity Jean-François Michel
relation country of citizenship
type designation for an administrative territorial entity
['Jean-François Michel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Jean-François_Michel property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2301899
P1303
Q34379
USER
Which musical instrument is played by that person ?
(Q39,P1303,c(Q34379))
action filter_type
action find
entity Q2301899
relation P1303
type Q34379
['Q39', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { resource:Q2301899 property:P1303 ?l . ?l rdf:type ontology:Q34379 }
Jean-François Michel
action filter_type
action find
entity Jean-François Michel
relation instrument
type musical instrument
['Switzerland', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { resource:Jean-François_Michel property:instrument ?l . ?l rdf:type ontology:musical_instrument }
[]
musical instrument
Q8338
SYSTEM
trumpet
Q8338
(Q39,P1303,c(Q34379))
action filter_type
action find
entity Q2301899
relation P1303
type Q34379
The [ANSWER] is played by that person
['Q39', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { resource:Q2301899 property:P1303 ?l . ?l rdf:type ontology:Q34379 }
trumpet
The trumpet is played by that person
trumpet
action filter_type
action find
entity Jean-François Michel
relation instrument
type musical instrument
['Switzerland', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { resource:Jean-François_Michel property:instrument ?l . ?l rdf:type ontology:musical_instrument }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q21088765 Q2301899
P106
Q12737077
USER
Which occupations do Jean-François Michel but not Josep Fàbrega do for a living ?
AND((Q2301899,P106,c(Q12737077)), NOT((Q21088765,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q2301899
relation P106
action find
entity Q21088765
relation P106
type Q12737077
{'AND': [['Q2301899', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q21088765', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q2301899 property:P106 ?a . FILTER NOT EXISTS { resource:Q21088765 property:P106 ?a } }
Josep Fàbrega Jean-François Michel
action filter_type
action difference
action find
entity Jean-François Michel
relation occupation
action find
entity Josep Fàbrega
relation occupation
type occupation
{'AND': [['Jean-François Michel', 'occupation', {'concept': 'occupation'}], {'NOT': [['Josep Fàbrega', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Jean-François_Michel property:occupation ?a . FILTER NOT EXISTS { resource:Josep_Fàbrega property:occupation ?a } }
[]
occupation
Q158852 Q17093672 Q14915627
SYSTEM
conductor, trumpeter, musicologist
Q158852 Q17093672 Q14915627
AND((Q2301899,P106,c(Q12737077)), NOT((Q21088765,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q2301899
relation P106
action find
entity Q21088765
relation P106
type Q12737077
[ANSWERS] Jean-François Michel but not Josep Fàbrega do for a living
{'AND': [['Q2301899', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q21088765', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q2301899 property:P106 ?a . FILTER NOT EXISTS { resource:Q21088765 property:P106 ?a } }
conductor trumpeter musicologist
Conductor, trumpeter and musicologist Jean-François Michel but not Josep Fàbrega do for a living
conductor trumpeter musicologist
action filter_type
action difference
action find
entity Jean-François Michel
relation occupation
action find
entity Josep Fàbrega
relation occupation
type occupation
{'AND': [['Jean-François Michel', 'occupation', {'concept': 'occupation'}], {'NOT': [['Josep Fàbrega', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Jean-François_Michel property:occupation ?a . FILTER NOT EXISTS { resource:Josep_Fàbrega property:occupation ?a } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15838411
P106
Q502895
USER
Do Gary Langford have the profession of those occupations ?
(Q15838411,P106,Q158852) (Q15838411,P106,Q17093672) (Q15838411,P106,Q14915627)
action is_in
entity prev_answer
action find
entity Q15838411
relation P106
['Q15838411', 'P106', 'Q158852'] ['Q15838411', 'P106', 'Q17093672'] ['Q15838411', 'P106', 'Q14915627']
ASK WHERE { resource:Q15838411 property:P106 ?l . VALUES ( ?l ) { ( resource:Q158852 ) ( resource:Q17093672 ) ( resource:Q14915627 ) } }
Gary Langford
action is_in
entity prev_answer
action find
entity Gary Langford
relation occupation
['Gary Langford', 'occupation', 'conductor'] ['Gary Langford', 'occupation', 'trumpeter'] ['Gary Langford', 'occupation', 'musicologist']
ASK WHERE { resource:Gary_Langford property:occupation ?l . VALUES ( ?l ) { ( resource:conductor ) ( resource:trumpeter ) ( resource:musicologist ) } }
[]
common name
SYSTEM
YES
(Q15838411,P106,Q158852) (Q15838411,P106,Q17093672) (Q15838411,P106,Q14915627)
action is_in
entity prev_answer
action find
entity Q15838411
relation P106
[ANSWER]
['Q15838411', 'P106', 'Q158852'] ['Q15838411', 'P106', 'Q17093672'] ['Q15838411', 'P106', 'Q14915627']
ASK WHERE { resource:Q15838411 property:P106 ?l . VALUES ( ?l ) { ( resource:Q158852 ) ( resource:Q17093672 ) ( resource:Q14915627 ) } }
Yes
action is_in
entity prev_answer
action find
entity Gary Langford
relation occupation
['Gary Langford', 'occupation', 'conductor'] ['Gary Langford', 'occupation', 'trumpeter'] ['Gary Langford', 'occupation', 'musicologist']
ASK WHERE { resource:Gary_Langford property:occupation ?l . VALUES ( ?l ) { ( resource:conductor ) ( resource:trumpeter ) ( resource:musicologist ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39
P530
Q15617994
USER
What administrative territories have diplomatic relationships with Switzerland ?
(Q39,P530,c(Q15617994))
action filter_type
action find
entity Q39
relation P530
type Q15617994
['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q39 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
Switzerland
action filter_type
action find
entity Switzerland
relation diplomatic relation
type designation for an administrative territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Switzerland property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q252 Q347
SYSTEM
Italy, Indonesia, Liechtenstein
Q38 Q252 Q347
(Q39,P530,c(Q15617994))
action filter_type
action find
entity Q39
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with Switzerland
['Q39', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q39 property:P530 ?b . ?b rdf:type ontology:Q15617994 }
Italy Indonesia Liechtenstein
Italy, Indonesia and Liechtenstein have diplomatic relationships with Switzerland
Italy Indonesia Liechtenstein
action filter_type
action find
entity Switzerland
relation diplomatic relation
type designation for an administrative territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Switzerland property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q39
Q1048835
USER
And which political territory?
(Q39,P530,c(Q1048835))
action filter_type
action find
entity Q39
relation P530
type Q1048835
['Q39', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q39 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Switzerland
action filter_type
action find
entity Switzerland
relation diplomatic relation
type political territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Switzerland property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(Q39,P530,c(Q1048835))
action filter_type
action find
entity Q39
relation P530
type Q1048835
[ANSWERS]
['Q39', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q39 property:P530 ?l . ?l rdf:type ontology:Q1048835 }
Germany Australia Canada
Germany Australia Canada
action filter_type
action find
entity Switzerland
relation diplomatic relation
type political territorial entity
['Switzerland', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Switzerland property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q29 Q408
P27
Q502895
USER
Which people are a citizen of Australia and Spain ?
AND((c(Q502895),P27,Q408), (c(Q502895),P27,Q29))
action filter_type
action intersection
action find_reverse
entity Q408
relation P27
action find_reverse
entity Q29
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q408'], [{'concept': 'Q502895'}, 'P27', 'Q29']]}
SELECT DISTINCT ?u WHERE { ?u property:P27 resource:Q408 . ?u property:P27 resource:Q29 . ?u rdf:type ontology:Q502895 }
Spain Australia
action filter_type
action intersection
action find_reverse
entity Australia
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Australia'], [{'concept': 'common name'}, 'country of citizenship', 'Spain']]}
SELECT DISTINCT ?u WHERE { ?u property:country_of_citizenship resource:Australia . ?u property:country_of_citizenship resource:Spain . ?u rdf:type ontology:common_name }
[]
common name
Q5798797 Q4397725 Q7821759 Q3848851 Q3328210
SYSTEM
Daniel Écija, José Ros García, Tony Alvarez, Víctor García, José Bello Amigo
Q5798797 Q4397725 Q7821759 Q3848851 Q3328210
AND((c(Q502895),P27,Q408), (c(Q502895),P27,Q29))
action filter_type
action intersection
action find_reverse
entity Q408
relation P27
action find_reverse
entity Q29
relation P27
type Q502895
[ANSWERS] are a citizen of Australia and Spain
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q408'], [{'concept': 'Q502895'}, 'P27', 'Q29']]}
SELECT DISTINCT ?u WHERE { ?u property:P27 resource:Q408 . ?u property:P27 resource:Q29 . ?u rdf:type ontology:Q502895 }
Daniel Écija José Ros García Tony Alvarez Víctor García José Bello Amigo
Daniel Écija, José Ros García, Tony Alvarez, Víctor García and José Bello Amigo are a citizen of Australia and Spain
Daniel Écija José Ros García Tony Alvarez Víctor García José Bello Amigo
action filter_type
action intersection
action find_reverse
entity Australia
relation country of citizenship
action find_reverse
entity Spain
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Australia'], [{'concept': 'common name'}, 'country of citizenship', 'Spain']]}
SELECT DISTINCT ?u WHERE { ?u property:country_of_citizenship resource:Australia . ?u property:country_of_citizenship resource:Spain . ?u rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4397725
P1412
Q34770
USER
Which language does that person speak in ?
(Q4397725,P1412,c(Q34770))
action filter_type
action find
entity Q4397725
relation P1412
type Q34770
['Q4397725', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q4397725 property:P1412 ?f }
José Ros García
action filter_type
action find
entity José Ros García
relation languages spoken, written or signed
type language
['José Ros García', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:José_Ros_García property:languages_spoken,_written_or_signed ?f }
[]
language
Clarification for simple ques.
Q3328210
SYSTEM
Did you mean José Bello Amigo ?
Q5798797 Q4397725 Q7821759 Q3848851 Q3328210
(Q5798797,P1412,c(Q34770)) (Q4397725,P1412,c(Q34770)) (Q7821759,P1412,c(Q34770)) (Q3848851,P1412,c(Q34770)) (Q3328210,P1412,c(Q34770))
[ANSWER]
['Q5798797', 'P1412', {'concept': 'Q34770'}] ['Q4397725', 'P1412', {'concept': 'Q34770'}] ['Q7821759', 'P1412', {'concept': 'Q34770'}] ['Q3848851', 'P1412', {'concept': 'Q34770'}] ['Q3328210', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q4397725 property:P1412 ?f }
Daniel Écija José Ros García Tony Alvarez Víctor García José Bello Amigo
Did you mean José Bello Amigo ?
José Bello Amigo
['Daniel Écija', 'languages spoken, written or signed', {'concept': 'language'}] ['José Ros García', 'languages spoken, written or signed', {'concept': 'language'}] ['Tony Alvarez', 'languages spoken, written or signed', {'concept': 'language'}] ['Víctor García', 'languages spoken, written or signed', {'concept': 'language'}] ['José Bello Amigo', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:José_Ros_García property:languages_spoken,_written_or_signed ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant José Ros García. Could you tell me the answer for that?
(Q4397725,P1412,c(Q34770))
Q4397725
['Q4397725', 'P1412', {'concept': 'Q34770'}]
['José Ros García', 'languages spoken, written or signed', {'concept': 'language'}]
[]
Q1321
SYSTEM
Spanish
Q1321
(Q4397725,P1412,c(Q34770))
action filter_type
action find
entity Q4397725
relation P1412
type Q34770
That person speaks a [ANSWER]
['Q4397725', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q4397725 property:P1412 ?f }
Spanish
That person speaks a Spanish
Spanish
action filter_type
action find
entity José Ros García
relation languages spoken, written or signed
type language
['José Ros García', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:José_Ros_García property:languages_spoken,_written_or_signed ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P85
Q7725634
USER
Which is the national anthem of Germany ?
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { resource:Q183 property:P85 ?k . ?k rdf:type ontology:Q7725634 }
Germany
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { resource:Germany property:anthem ?k . ?k rdf:type ontology:literary_work }
[]
literary work
Q44042
SYSTEM
Das Lied der Deutschen
Q44042
(Q183,P85,c(Q7725634))
action filter_type
action find
entity Q183
relation P85
type Q7725634
The national anthem of Germany is [ANSWER]
['Q183', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?k WHERE { resource:Q183 property:P85 ?k . ?k rdf:type ontology:Q7725634 }
Das Lied der Deutschen
The national anthem of Germany is Das Lied der Deutschen
Das Lied der Deutschen
action filter_type
action find
entity Germany
relation anthem
type literary work
['Germany', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?k WHERE { resource:Germany property:anthem ?k . ?k rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P47
Q7275 Q15617994
USER
How many states and administrative territories share the border with Italy ?
(Q38,P47,c(Q7275)) (Q38,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q7275
action filter_type
action find
entity Q38
relation P47
type Q15617994
['Q38', 'P47', {'concept': 'Q7275'}] ['Q38', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { resource:Q38 property:P47 ?o . ?o rdf:type ontology:Q7275 } UNION { resource:Q38 property:P47 ?o . ?o rdf:type ontology:Q15617994 } }
Italy
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type state
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'state'}] ['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { resource:Italy property:shares_border_with ?o . ?o rdf:type ontology:state } UNION { resource:Italy property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
state designation for an administrative territorial entity
SYSTEM
1 states and 4 administrative territories
Q142 Q39 Q215 Q238 Q36704
(Q38,P47,c(Q7275)) (Q38,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q38
relation P47
type Q7275
action filter_type
action find
entity Q38
relation P47
type Q15617994
[ANSWER]
['Q38', 'P47', {'concept': 'Q7275'}] ['Q38', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { resource:Q38 property:P47 ?o . ?o rdf:type ontology:Q7275 } UNION { resource:Q38 property:P47 ?o . ?o rdf:type ontology:Q15617994 } }
France Switzerland Slovenia San Marino Yugoslavia
1 states and 4 administrative territories
action count
action union
action filter_type
action find
entity Italy
relation shares border with
type state
action filter_type
action find
entity Italy
relation shares border with
type designation for an administrative territorial entity
['Italy', 'shares border with', {'concept': 'state'}] ['Italy', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { { resource:Italy property:shares_border_with ?o . ?o rdf:type ontology:state } UNION { resource:Italy property:shares_border_with ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]