Simple Question (Direct)
Simple Question
Q2408596
P102
Q7278
USER
Which political party is Alexandre Drevet a member of ?
(Q2408596,P102,c(Q7278))
action filter_type
action find
entity Q2408596
relation P102
type Q7278
['Q2408596', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7278 . resource:Q2408596 property:P102 ?c }
Alexandre Drevet
action filter_type
action find
entity Alexandre Drevet
relation member of political party
type political party
['Alexandre Drevet', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_party . resource:Alexandre_Drevet property:member_of_political_party ?c }
[]
political party
Q192821
SYSTEM
French Communist Party
Q192821
(Q2408596,P102,c(Q7278))
action filter_type
action find
entity Q2408596
relation P102
type Q7278
The [ANSWER] is Alexandre Drevet a member of
['Q2408596', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q7278 . resource:Q2408596 property:P102 ?c }
French Communist Party
The French Communist Party is Alexandre Drevet a member of
French Communist Party
action filter_type
action find
entity Alexandre Drevet
relation member of political party
type political party
['Alexandre Drevet', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_party . resource:Alexandre_Drevet property:member_of_political_party ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2408596
P20
Q20667921
USER
Where did the demise of that person occur ?
(Q192821,P20,c(Q20667921))
action filter_type
action find
entity Q2408596
relation P20
type Q20667921
['Q192821', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { resource:Q2408596 property:P20 ?a . ?a rdf:type ontology:Q20667921 }
Alexandre Drevet
action filter_type
action find
entity Alexandre Drevet
relation place of death
type type of french administrative division
['French Communist Party', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { resource:Alexandre_Drevet property:place_of_death ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q239078
SYSTEM
Romans-sur-Isère
Q239078
(Q192821,P20,c(Q20667921))
action filter_type
action find
entity Q2408596
relation P20
type Q20667921
The demise of that person occurred in [ANSWER]
['Q192821', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?a WHERE { resource:Q2408596 property:P20 ?a . ?a rdf:type ontology:Q20667921 }
Romans-sur-Isère
The demise of that person occurred in Romans-sur-Isère
Romans-sur-Isère
action filter_type
action find
entity Alexandre Drevet
relation place of death
type type of french administrative division
['French Communist Party', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?a WHERE { resource:Alexandre_Drevet property:place_of_death ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2408596
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q239078,P27,c(Q15617994))
action filter_type
action find
entity Q2408596
relation P27
type Q15617994
['Q239078', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q2408596 property:P27 ?a }
Alexandre Drevet
action filter_type
action find
entity Alexandre Drevet
relation country of citizenship
type designation for an administrative territorial entity
['Romans-sur-Isère', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alexandre_Drevet property:country_of_citizenship ?a }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q239078,P27,c(Q15617994))
action filter_type
action find
entity Q2408596
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q239078', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q2408596 property:P27 ?a }
France
The France is the country of citizenship of that person
France
action filter_type
action find
entity Alexandre Drevet
relation country of citizenship
type designation for an administrative territorial entity
['Romans-sur-Isère', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Alexandre_Drevet property:country_of_citizenship ?a }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with around 17 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 17
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?l ) WHERE { ?n property:P530 ?r . ?n rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?l = 17 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 17
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?l ) WHERE { ?n property:diplomatic_relation ?r . ?n rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?l = 17 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 17
[ANSWERS] hold diplomatic relationship with around 17 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?l ) WHERE { ?n property:P530 ?r . ?n rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?l = 17 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria hold diplomatic relationship with around 17 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 17
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?l ) WHERE { ?n property:diplomatic_relation ?r . ?n rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?l = 17 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4505642
P530
Q1048835
USER
Do Levadne have diplomatic relations with those ones ?
(Q4505642,P530,Q35) (Q4505642,P530,Q16) (Q4505642,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4505642
relation P530
['Q4505642', 'P530', 'Q35'] ['Q4505642', 'P530', 'Q16'] ['Q4505642', 'P530', 'Q40']
ASK WHERE { resource:Q4505642 property:P530 ?l . VALUES ( ?l ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Levadne
action is_in
entity prev_answer
action find
entity Levadne
relation diplomatic relation
['Levadne', 'diplomatic relation', 'Denmark'] ['Levadne', 'diplomatic relation', 'Canada'] ['Levadne', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Levadne property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
NO
(Q4505642,P530,Q35) (Q4505642,P530,Q16) (Q4505642,P530,Q40)
action is_in
entity prev_answer
action find
entity Q4505642
relation P530
[ANSWER]
['Q4505642', 'P530', 'Q35'] ['Q4505642', 'P530', 'Q16'] ['Q4505642', 'P530', 'Q40']
ASK WHERE { resource:Q4505642 property:P530 ?l . VALUES ( ?l ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Levadne
relation diplomatic relation
['Levadne', 'diplomatic relation', 'Denmark'] ['Levadne', 'diplomatic relation', 'Canada'] ['Levadne', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Levadne property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q35 Q2190221
P35
Q502895
USER
Is Paul Staunton the chief of state of Denmark ?
(Q35,P35,Q2190221)
action is_in
entity Q2190221
action find
entity Q35
relation P35
['Q35', 'P35', 'Q2190221']
ASK WHERE { resource:Q35 property:P35 resource:Q2190221 }
Denmark Paul Staunton
action is_in
entity Paul Staunton
action find
entity Denmark
relation head of state
['Denmark', 'head of state', 'Paul Staunton']
ASK WHERE { resource:Denmark property:head_of_state resource:Paul_Staunton }
[]
common name
SYSTEM
NO
(Q35,P35,Q2190221)
action is_in
entity Q2190221
action find
entity Q35
relation P35
[ANSWER]
['Q35', 'P35', 'Q2190221']
ASK WHERE { resource:Q35 property:P35 resource:Q2190221 }
No
action is_in
entity Paul Staunton
action find
entity Denmark
relation head of state
['Denmark', 'head of state', 'Paul Staunton']
ASK WHERE { resource:Denmark property:head_of_state resource:Paul_Staunton }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18946625 Q239078
P276 P190
Q56061
USER
Which administrative territories are twin towns of Romans-sur-Isère or are the locations of Bentveldsduinweg ?
OR((Q239078,P190,c(Q56061)), (Q18946625,P276,c(Q56061)))
action filter_type
action union
action find
entity Q239078
relation P190
action find
entity Q18946625
relation P276
type Q56061
{'OR': [['Q239078', 'P190', {'concept': 'Q56061'}], ['Q18946625', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q239078 property:P190 ?g } UNION { resource:Q18946625 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Bentveldsduinweg Romans-sur-Isère
action filter_type
action union
action find
entity Romans-sur-Isère
relation sister city
action find
entity Bentveldsduinweg
relation location
type administrative territorial entity
{'OR': [['Romans-sur-Isère', 'sister city', {'concept': 'administrative territorial entity'}], ['Bentveldsduinweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Romans-sur-Isère property:sister_city ?g } UNION { resource:Bentveldsduinweg property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q803990 Q2347146 Q6285
SYSTEM
Beit Sahour, Aerdenhout, Varese
Q803990 Q2347146 Q6285
OR((Q239078,P190,c(Q56061)), (Q18946625,P276,c(Q56061)))
action filter_type
action union
action find
entity Q239078
relation P190
action find
entity Q18946625
relation P276
type Q56061
[ANSWERS] are twin towns of Romans-sur-Isère or are the locations of Bentveldsduinweg
{'OR': [['Q239078', 'P190', {'concept': 'Q56061'}], ['Q18946625', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q239078 property:P190 ?g } UNION { resource:Q18946625 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Beit Sahour Aerdenhout Varese
Beit Sahour, Aerdenhout and Varese are twin towns of Romans-sur-Isère or are the locations of Bentveldsduinweg
Beit Sahour Aerdenhout Varese
action filter_type
action union
action find
entity Romans-sur-Isère
relation sister city
action find
entity Bentveldsduinweg
relation location
type administrative territorial entity
{'OR': [['Romans-sur-Isère', 'sister city', {'concept': 'administrative territorial entity'}], ['Bentveldsduinweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Romans-sur-Isère property:sister_city ?g } UNION { resource:Bentveldsduinweg property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have a shared border with that administrative territory ?
(Q6285,P47,c(Q15617994))
['Q6285', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3453916 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Varese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Varese property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q803990
SYSTEM
Did you mean Beit Sahour ?
(Q803990,P47,c(Q15617994)) (Q2347146,P47,c(Q15617994)) (Q6285,P47,c(Q15617994))
[ANSWER]
['Q803990', 'P47', {'concept': 'Q15617994'}] ['Q2347146', 'P47', {'concept': 'Q15617994'}] ['Q6285', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3453916 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Beit Sahour ?
Beit Sahour
['Beit Sahour', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Aerdenhout', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Varese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Varese property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Varese. Could you tell me the answer for that?
(Q6285,P47,c(Q15617994))
Q6285
['Q6285', 'P47', {'concept': 'Q15617994'}]
['Varese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
17
Q39508 Q40786 Q40229 Q39501 Q39522 Q40863 Q39505 Q40804 Q39489 Q41062 Q40172 Q40175 Q39822 Q40186 Q40195 Q39926 Q40727
(Q6285,P47,c(Q15617994))
[ANSWER]
['Q6285', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q3453916 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Casciago Gazzada Schianno Induno Olona Bodio Lomnago Lozza Biandronno Castello Cabiaglio Galliate Lombardo Arcisate Malnate Buguggiate Gavirate Bardello Azzate Cazzago Brabbia Vedano Olona Luvinate
17
['Varese', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Varese property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6285
P417
Q502895
USER
Which person is the patron saint of Varese ?
(Q6285,P417,c(Q502895))
action filter_type
action find
entity Q6285
relation P417
type Q502895
['Q6285', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q6285 property:P417 ?k }
Varese
action filter_type
action find
entity Varese
relation patron saint
type common name
['Varese', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Varese property:patron_saint ?k }
[]
common name
Q1284971
SYSTEM
Victor Maurus
Q1284971
(Q6285,P417,c(Q502895))
action filter_type
action find
entity Q6285
relation P417
type Q502895
[ANSWER] is the patron saint of Varese
['Q6285', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q502895 . resource:Q6285 property:P417 ?k }
Victor Maurus
Victor Maurus is the patron saint of Varese
Victor Maurus
action filter_type
action find
entity Varese
relation patron saint
type common name
['Varese', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:common_name . resource:Varese property:patron_saint ?k }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P825
Q502895 Q207628
USER
Which people are more number of musical compositions dedicated to than that person ?
(c(Q207628),P825,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action count
action filter_type
action find
entity Q1284971
relation P825
type Q502895
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:P825 ?o . ?o rdf:type ontology:Q502895 . ?j rdf:type ontology:Q207628 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q1284971 property:P825 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?d > ?q ) }
action greater
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action count
action filter_type
action find
entity Victor Maurus
relation dedicated to
type common name
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:dedicated_to ?o . ?o rdf:type ontology:common_name . ?j rdf:type ontology:musical_composition } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Victor_Maurus property:dedicated_to ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?d > ?q ) }
[]
common name musical composition
Q41309 Q51056 Q150767
SYSTEM
Franz Liszt, Franz Joseph I of Austria, Benjamin Britten
Q85210 Q150767 Q1948037 Q44039 Q443559 Q160257 Q66005 Q570845 Q502943 Q51056 Q472635 Q92467 Q538335 Q179858 Q41309
(c(Q207628),P825,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action count
action filter_type
action find
entity Q1284971
relation P825
type Q502895
[ANSWERS] are more number of musical compositions dedicated to than that person
[{'concept': 'Q207628'}, 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:P825 ?o . ?o rdf:type ontology:Q502895 . ?j rdf:type ontology:Q207628 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Q1284971 property:P825 ?t . ?t rdf:type ontology:Q502895 } } . FILTER ( ?d > ?q ) }
Karl Ritter von Stremayr Benjamin Britten Moritz Reichsgraf von Fries Ludwig II of Bavaria Elizabeth Sprague Coolidge Wanda Landowska Margrave Christian Ludwig of Brandenburg-Schwedt Joseph Franz von Lobkowitz Andrey Razumovsky Franz Joseph I of Austria Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Urho Kekkonen Franz Liszt
Franz Liszt, Franz Joseph I of Austria and Benjamin Britten are more number of musical compositions dedicated to than that person
Franz Liszt Franz Joseph I of Austria Benjamin Britten
action greater
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action count
action filter_type
action find
entity Victor Maurus
relation dedicated to
type common name
[{'concept': 'musical composition'}, 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?d ) WHERE { ?j property:dedicated_to ?o . ?o rdf:type ontology:common_name . ?j rdf:type ontology:musical_composition } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { resource:Victor_Maurus property:dedicated_to ?t . ?t rdf:type ontology:common_name } } . FILTER ( ?d > ?q ) }
[]