Simple Question (Direct)
Simple Question
Q3992733
P1412
Q34770
USER
Which language can Tommaso Casini read ?
(Q3992733,P1412,c(Q34770))
action filter_type
action find
entity Q3992733
relation P1412
type Q34770
['Q3992733', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q3992733 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Tommaso Casini
action filter_type
action find
entity Tommaso Casini
relation languages spoken, written or signed
type language
['Tommaso Casini', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Tommaso_Casini property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3992733,P1412,c(Q34770))
action filter_type
action find
entity Q3992733
relation P1412
type Q34770
Tommaso Casini can read in [ANSWER]
['Q3992733', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q3992733 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Italian
Tommaso Casini can read in Italian
Italian
action filter_type
action find
entity Tommaso Casini
relation languages spoken, written or signed
type language
['Tommaso Casini', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Tommaso_Casini property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3992733
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q652,P19,c(Q15617994))
action filter_type
action find
entity Q3992733
relation P19
type Q15617994
['Q652', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3992733 property:P19 ?d . ?d rdf:type ontology:Q15617994 }
Tommaso Casini
action filter_type
action find
entity Tommaso Casini
relation place of birth
type designation for an administrative territorial entity
['Italian', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tommaso_Casini property:place_of_birth ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q94795
SYSTEM
Crespellano
Q94795
(Q652,P19,c(Q15617994))
action filter_type
action find
entity Q3992733
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q652', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3992733 property:P19 ?d . ?d rdf:type ontology:Q15617994 }
Crespellano
Crespellano is the birthplace of that person
Crespellano
action filter_type
action find
entity Tommaso Casini
relation place of birth
type designation for an administrative territorial entity
['Italian', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tommaso_Casini property:place_of_birth ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are bordered by that administrative territory ?
(Q94795,P47,c(Q15617994))
action count
action filter_type
action find
entity Q94795
relation P47
type Q15617994
['Q94795', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q94795 property:P47 ?o }
action count
action filter_type
action find
entity Crespellano
relation shares border with
type designation for an administrative territorial entity
['Crespellano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Crespellano property:shares_border_with ?o }
[]
designation for an administrative territorial entity
SYSTEM
3
Q94493 Q94548 Q100043
(Q94795,P47,c(Q15617994))
action count
action filter_type
action find
entity Q94795
relation P47
type Q15617994
[ANSWER]
['Q94795', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q94795 property:P47 ?o }
Anzola dell'Emilia Bazzano Castelfranco Emilia
3
action count
action filter_type
action find
entity Crespellano
relation shares border with
type designation for an administrative territorial entity
['Crespellano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Crespellano property:shares_border_with ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with atmost 104 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 104
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?o ) WHERE { ?f property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?o <= 104 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 104
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?o ) WHERE { ?f property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?o <= 104 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 104
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?o ) WHERE { ?f property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?o <= 104 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 104
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?q ) AS ?o ) WHERE { ?f property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?o <= 104 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3992733
P21
Q290
USER
What is the sex of Tommaso Casini ?
(Q3992733,P21,c(Q290))
action filter_type
action find
entity Q3992733
relation P21
type Q290
['Q3992733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3992733 property:P21 ?m }
Tommaso Casini
action filter_type
action find
entity Tommaso Casini
relation gender
type sex
['Tommaso Casini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Tommaso_Casini property:gender ?m }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3992733,P21,c(Q290))
action filter_type
action find
entity Q3992733
relation P21
type Q290
The sex of Tommaso Casini is the [ANSWER]
['Q3992733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3992733 property:P21 ?m }
male
The sex of Tommaso Casini is the male
male
action filter_type
action find
entity Tommaso Casini
relation gender
type sex
['Tommaso Casini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Tommaso_Casini property:gender ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q22833424
Q290
USER
And how about Chris A. Hamilton?
(Q22833424,P21,c(Q290))
action filter_type
action find
entity Q22833424
relation P21
type Q290
['Q22833424', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q22833424 property:P21 ?z . ?z rdf:type ontology:Q290 }
Chris A. Hamilton
action filter_type
action find
entity Chris A. Hamilton
relation gender
type sex
['Chris A. Hamilton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Chris_A._Hamilton property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q22833424,P21,c(Q290))
action filter_type
action find
entity Q22833424
relation P21
type Q290
[ANSWER]
['Q22833424', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q22833424 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Chris A. Hamilton
relation gender
type sex
['Chris A. Hamilton', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Chris_A._Hamilton property:gender ?z . ?z rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q2344657
P21
Q502895
USER
Is Stephen Dodd a that sex ?
(Q2344657,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q2344657
relation P21
['Q2344657', 'P21', 'Q6581097']
ASK WHERE { resource:Q2344657 property:P21 resource:Q6581097 }
male Stephen Dodd
action is_in
entity male
action find
entity Stephen Dodd
relation gender
['Stephen Dodd', 'gender', 'male']
ASK WHERE { resource:Stephen_Dodd property:gender resource:male }
[]
common name
SYSTEM
YES
(Q2344657,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q2344657
relation P21
[ANSWER]
['Q2344657', 'P21', 'Q6581097']
ASK WHERE { resource:Q2344657 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Stephen Dodd
relation gender
['Stephen Dodd', 'gender', 'male']
ASK WHERE { resource:Stephen_Dodd property:gender resource:male }
[]