Simple Question (Direct)
Simple Question
Q3071039
P27
Q15617994
USER
Which administrative territory is Pierre Guéry an inhabitant of ?
(Q3071039,P27,c(Q15617994))
action filter_type
action find
entity Q3071039
relation P27
type Q15617994
['Q3071039', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3071039 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Pierre Guéry
action filter_type
action find
entity Pierre Guéry
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Guéry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Pierre_Guéry property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3071039,P27,c(Q15617994))
action filter_type
action find
entity Q3071039
relation P27
type Q15617994
[ANSWER] is Pierre Guéry an inhabitant of
['Q3071039', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3071039 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
France
France is Pierre Guéry an inhabitant of
France
action filter_type
action find
entity Pierre Guéry
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Guéry', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Pierre_Guéry property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3071039
P106
Q12737077
USER
Which occupations are the professions of Pierre Guéry ?
(Q3071039,P106,c(Q12737077))
action filter_type
action find
entity Q3071039
relation P106
type Q12737077
['Q3071039', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3071039 property:P106 ?z }
Pierre Guéry
action filter_type
action find
entity Pierre Guéry
relation occupation
type occupation
['Pierre Guéry', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Pierre_Guéry property:occupation ?z }
[]
occupation
Q2490358 Q333634 Q49757
SYSTEM
choreographer, translator, poet
Q2490358 Q333634 Q49757 Q36180
(Q3071039,P106,c(Q12737077))
action filter_type
action find
entity Q3071039
relation P106
type Q12737077
The professions of Pierre Guéry are [ANSWERS]
['Q3071039', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q12737077 . resource:Q3071039 property:P106 ?z }
choreographer translator poet writer
The professions of Pierre Guéry are choreographer, translator and poet
choreographer translator poet
action filter_type
action find
entity Pierre Guéry
relation occupation
type occupation
['Pierre Guéry', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:occupation . resource:Pierre_Guéry property:occupation ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P194
Q1752346
USER
Which assembly is the representative body for France ?
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q142 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
France
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:France property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]
assembly
Q632552
SYSTEM
French Parliament
Q632552
(Q142,P194,c(Q1752346))
action filter_type
action find
entity Q142
relation P194
type Q1752346
France [ANSWER] is the representative body for France
['Q142', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q142 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
French Parliament
France French Parliament is the representative body for France
French Parliament
action filter_type
action find
entity France
relation legislative body
type assembly
['France', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:France property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16110
Q1752346
USER
And what about region of Italy?
(Q16110,P194,c(Q1752346))
action filter_type
action find
entity Q16110
relation P194
type Q1752346
['Q16110', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1752346 . resource:Q16110 property:P194 ?l }
region of Italy
action filter_type
action find
entity region of Italy
relation legislative body
type assembly
['region of Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:assembly . resource:region_of_Italy property:legislative_body ?l }
[]
assembly
Q1077701
SYSTEM
Regional Council in Italy
Q1077701
(Q16110,P194,c(Q1752346))
action filter_type
action find
entity Q16110
relation P194
type Q1752346
[ANSWER]
['Q16110', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1752346 . resource:Q16110 property:P194 ?l }
Regional Council in Italy
Regional Council in Italy
action filter_type
action find
entity region of Italy
relation legislative body
type assembly
['region of Italy', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:assembly . resource:region_of_Italy property:legislative_body ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that assembly belong to ?
(Q1077701,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1077701
relation P17
type Q15617994
['Q1077701', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q1077701 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Regional Council in Italy
relation country
type designation for an administrative territorial entity
['Regional Council in Italy', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Regional_Council_in_Italy property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q1077701,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1077701
relation P17
type Q15617994
[ANSWER]
['Q1077701', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q1077701 property:P17 ?o . ?o rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity Regional Council in Italy
relation country
type designation for an administrative territorial entity
['Regional Council in Italy', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Regional_Council_in_Italy property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3764226 Q632552
P19 P17
Q15617994
USER
Which administrative territories do French Parliament belong to or were Gilberto Evangelisti born ?
OR((Q632552,P17,c(Q15617994)), (Q3764226,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q632552
relation P17
action find
entity Q3764226
relation P19
type Q15617994
{'OR': [['Q632552', 'P17', {'concept': 'Q15617994'}], ['Q3764226', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q632552 property:P17 ?g } UNION { resource:Q3764226 property:P19 ?g } } . ?g rdf:type ontology:Q15617994 }
Gilberto Evangelisti French Parliament
action filter_type
action union
action find
entity French Parliament
relation country
action find
entity Gilberto Evangelisti
relation place of birth
type designation for an administrative territorial entity
{'OR': [['French Parliament', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Gilberto Evangelisti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:French_Parliament property:country ?g } UNION { resource:Gilberto_Evangelisti property:place_of_birth ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q18400
SYSTEM
France, Alatri
Q142 Q18400
OR((Q632552,P17,c(Q15617994)), (Q3764226,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q632552
relation P17
action find
entity Q3764226
relation P19
type Q15617994
French Parliament belong to [ANSWERS]
{'OR': [['Q632552', 'P17', {'concept': 'Q15617994'}], ['Q3764226', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q632552 property:P17 ?g } UNION { resource:Q3764226 property:P19 ?g } } . ?g rdf:type ontology:Q15617994 }
France Alatri
French Parliament belong to France and Alatri
France Alatri
action filter_type
action union
action find
entity French Parliament
relation country
action find
entity Gilberto Evangelisti
relation place of birth
type designation for an administrative territorial entity
{'OR': [['French Parliament', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Gilberto Evangelisti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:French_Parliament property:country ?g } UNION { resource:Gilberto_Evangelisti property:place_of_birth ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1000
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with more number of administrative territories than Gabon ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q1000 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?o ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?v } GROUP BY ?h } }
Gabon
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Gabon property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?o ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?v } GROUP BY ?h } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of administrative territories than Gabon
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q1000 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?o ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 . ?h property:P530 ?v } GROUP BY ?h } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have diplomatic relationships with more number of administrative territories than Gabon
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Gabon property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?o ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?v } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q15617994
USER
And also tell me about Denmark?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?v property:P530 ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q35 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?m ) }
Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Denmark property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?m ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q40 Q183 Q408 Q16
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?v property:P530 ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Q35 property:P530 ?c . ?c rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?m ) }
Austria Germany Australia Canada
Germany Australia Canada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?z ) AS ?j ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?z } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { resource:Denmark property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?m ) }
[]