Simple Question (Direct)
Simple Question
Q4761026
P19
Q56061
USER
Where was Andy McMillan born ?
(Q4761026,P19,c(Q56061))
action filter_type
action find
entity Q4761026
relation P19
type Q56061
['Q4761026', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q4761026 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Andy McMillan
action filter_type
action find
entity Andy McMillan
relation place of birth
type administrative territorial entity
['Andy McMillan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Andy_McMillan property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q37701
SYSTEM
Bloemfontein
Q37701
(Q4761026,P19,c(Q56061))
action filter_type
action find
entity Q4761026
relation P19
type Q56061
Andy McMillan was born in [ANSWER]
['Q4761026', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q4761026 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Bloemfontein
Andy McMillan was born in Bloemfontein
Bloemfontein
action filter_type
action find
entity Andy McMillan
relation place of birth
type administrative territorial entity
['Andy McMillan', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Andy_McMillan property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q37701
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q37701,P17,c(Q15617994))
action filter_type
action find
entity Q37701
relation P17
type Q15617994
['Q37701', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q37701 property:P17 ?a }
Bloemfontein
action filter_type
action find
entity Bloemfontein
relation country
type designation for an administrative territorial entity
['Bloemfontein', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bloemfontein property:country ?a }
[]
designation for an administrative territorial entity
Q258
SYSTEM
South Africa
Q258
(Q37701,P17,c(Q15617994))
action filter_type
action find
entity Q37701
relation P17
type Q15617994
That administrative territory is in [ANSWER]
['Q37701', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q37701 property:P17 ?a }
South Africa
That administrative territory is in South Africa
South Africa
action filter_type
action find
entity Bloemfontein
relation country
type designation for an administrative territorial entity
['Bloemfontein', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bloemfontein property:country ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q258 Q20085
P530
Q15617994
USER
Does Waldenburg have diplomatic relations with that one ?
(Q258,P530,Q20085)
action is_in
entity Q20085
action find
entity Q258
relation P530
['Q258', 'P530', 'Q20085']
ASK WHERE { resource:Q258 property:P530 resource:Q20085 }
South Africa Waldenburg
action is_in
entity Waldenburg
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Waldenburg']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Waldenburg }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q258,P530,Q20085)
action is_in
entity Q20085
action find
entity Q258
relation P530
[ANSWER]
['Q258', 'P530', 'Q20085']
ASK WHERE { resource:Q258 property:P530 resource:Q20085 }
No
action is_in
entity Waldenburg
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Waldenburg']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Waldenburg }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q37701 Q258
P1376
Q15617994
USER
Does South Africa have that administrative territory as its capital ?
(Q37701,P1376,Q258)
action is_in
entity Q258
action find
entity Q37701
relation P1376
['Q37701', 'P1376', 'Q258']
ASK WHERE { resource:Q37701 property:P1376 resource:Q258 }
Bloemfontein South Africa
action is_in
entity South Africa
action find
entity Bloemfontein
relation capital of
['Bloemfontein', 'capital of', 'South Africa']
ASK WHERE { resource:Bloemfontein property:capital_of resource:South_Africa }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q37701,P1376,Q258)
action is_in
entity Q258
action find
entity Q37701
relation P1376
[ANSWER]
['Q37701', 'P1376', 'Q258']
ASK WHERE { resource:Q37701 property:P1376 resource:Q258 }
Yes
action is_in
entity South Africa
action find
entity Bloemfontein
relation capital of
['Bloemfontein', 'capital of', 'South Africa']
ASK WHERE { resource:Bloemfontein property:capital_of resource:South_Africa }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4761026 Q258
P27
Q15617994
USER
Is South Africa the country of citizenship of Andy McMillan ?
(Q4761026,P27,Q258)
action is_in
entity Q258
action find
entity Q4761026
relation P27
['Q4761026', 'P27', 'Q258']
ASK WHERE { resource:Q4761026 property:P27 resource:Q258 }
Andy McMillan South Africa
action is_in
entity South Africa
action find
entity Andy McMillan
relation country of citizenship
['Andy McMillan', 'country of citizenship', 'South Africa']
ASK WHERE { resource:Andy_McMillan property:country_of_citizenship resource:South_Africa }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q4761026,P27,Q258)
action is_in
entity Q258
action find
entity Q4761026
relation P27
[ANSWER]
['Q4761026', 'P27', 'Q258']
ASK WHERE { resource:Q4761026 property:P27 resource:Q258 }
Yes
action is_in
entity South Africa
action find
entity Andy McMillan
relation country of citizenship
['Andy McMillan', 'country of citizenship', 'South Africa']
ASK WHERE { resource:Andy_McMillan property:country_of_citizenship resource:South_Africa }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q37701 Q193619
P1376
Q1048835
USER
Does Union of South Africa have Bloemfontein has its center of administration ?
(Q37701,P1376,Q193619)
action is_in
entity Q193619
action find
entity Q37701
relation P1376
['Q37701', 'P1376', 'Q193619']
ASK WHERE { resource:Q37701 property:P1376 resource:Q193619 }
Bloemfontein Union of South Africa
action is_in
entity Union of South Africa
action find
entity Bloemfontein
relation capital of
['Bloemfontein', 'capital of', 'Union of South Africa']
ASK WHERE { resource:Bloemfontein property:capital_of resource:Union_of_South_Africa }
[]
political territorial entity
SYSTEM
YES
(Q37701,P1376,Q193619)
action is_in
entity Q193619
action find
entity Q37701
relation P1376
[ANSWER]
['Q37701', 'P1376', 'Q193619']
ASK WHERE { resource:Q37701 property:P1376 resource:Q193619 }
Yes
action is_in
entity Union of South Africa
action find
entity Bloemfontein
relation capital of
['Bloemfontein', 'capital of', 'Union of South Africa']
ASK WHERE { resource:Bloemfontein property:capital_of resource:Union_of_South_Africa }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q258 Q183
P530
Q1048835
USER
Does Germany have diplomatic relationships with South Africa ?
(Q258,P530,Q183)
action is_in
entity Q183
action find
entity Q258
relation P530
['Q258', 'P530', 'Q183']
ASK WHERE { resource:Q258 property:P530 resource:Q183 }
South Africa Germany
action is_in
entity Germany
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Germany']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q258,P530,Q183)
action is_in
entity Q183
action find
entity Q258
relation P530
[ANSWER]
['Q258', 'P530', 'Q183']
ASK WHERE { resource:Q258 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Germany']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Germany }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q4761026 Q258 Q556208
P27
Q15617994
USER
Is Andy McMillan a civilian of South Africa and Willenscharen ?
(Q4761026,P27,Q258) (Q4761026,P27,Q556208)
action is_in
entity Q4761026
action intersection
action find_reverse
entity Q258
relation P27
action find_reverse
entity Q556208
relation P27
['Q4761026', 'P27', 'Q258'] ['Q4761026', 'P27', 'Q556208']
ASK WHERE { resource:Q4761026 property:P27 resource:Q258 . resource:Q4761026 property:P27 resource:Q556208 }
Andy McMillan South Africa Willenscharen
action is_in
entity Andy McMillan
action intersection
action find_reverse
entity South Africa
relation country of citizenship
action find_reverse
entity Willenscharen
relation country of citizenship
['Andy McMillan', 'country of citizenship', 'South Africa'] ['Andy McMillan', 'country of citizenship', 'Willenscharen']
ASK WHERE { resource:Andy_McMillan property:country_of_citizenship resource:South_Africa . resource:Andy_McMillan property:country_of_citizenship resource:Willenscharen }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q4761026,P27,Q258) (Q4761026,P27,Q556208)
action is_in
entity Q4761026
action intersection
action find_reverse
entity Q258
relation P27
action find_reverse
entity Q556208
relation P27
[ANSWER]
['Q4761026', 'P27', 'Q258'] ['Q4761026', 'P27', 'Q556208']
ASK WHERE { resource:Q4761026 property:P27 resource:Q258 . resource:Q4761026 property:P27 resource:Q556208 }
YES and NO respectively
action is_in
entity Andy McMillan
action intersection
action find_reverse
entity South Africa
relation country of citizenship
action find_reverse
entity Willenscharen
relation country of citizenship
['Andy McMillan', 'country of citizenship', 'South Africa'] ['Andy McMillan', 'country of citizenship', 'Willenscharen']
ASK WHERE { resource:Andy_McMillan property:country_of_citizenship resource:South_Africa . resource:Andy_McMillan property:country_of_citizenship resource:Willenscharen }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q159605
P180
Q15617994 Q3305213 Q2342494
USER
Which administrative territories are depicted in more number of paintings or collectables than Tivoli ?
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q159605
relation P180
type Q3305213
type Q2342494
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { { ?q property:P180 ?i . ?q rdf:type ontology:Q3305213 . ?i rdf:type ontology:Q15617994 } UNION { ?q property:P180 ?i . ?q rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P180 resource:Q159605 . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q3305213 } } } } . FILTER ( ?y > ?f ) }
Tivoli
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Tivoli
relation depicts
type painting
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { { ?q property:depicts ?i . ?q rdf:type ontology:painting . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:depicts ?i . ?q rdf:type ontology:collectable . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:depicts resource:Tivoli . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:painting } } } } . FILTER ( ?y > ?f ) }
[]
designation for an administrative territorial entity painting collectable
Q38 Q1011 Q79
SYSTEM
Italy, Cape Verde, Egypt
Q3883 Q131596 Q712 Q532 Q38 Q80644 Q1028 Q298 Q79 Q772 Q82025 Q1273 Q1011 Q913434
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q159605
relation P180
type Q3305213
type Q2342494
[ANSWERS] are depicted in more number of paintings or collectables than Tivoli
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { { ?q property:P180 ?i . ?q rdf:type ontology:Q3305213 . ?i rdf:type ontology:Q15617994 } UNION { ?q property:P180 ?i . ?q rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P180 resource:Q159605 . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q3305213 } } } } . FILTER ( ?y > ?f ) }
Catanzaro farm Fiji village Italy Köngen Morocco Chile Egypt Drenthe horn Tuscany Cape Verde Les Halles
Italy, Cape Verde and Egypt are depicted in more number of paintings or collectables than Tivoli
Italy Cape Verde Egypt
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Tivoli
relation depicts
type painting
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?y ) WHERE { { ?q property:depicts ?i . ?q rdf:type ontology:painting . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:depicts ?i . ?q rdf:type ontology:collectable . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:depicts resource:Tivoli . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:painting } } } } . FILTER ( ?y > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q229
P180
Q15617994 Q3305213 Q2342494
USER
And what about Cyprus?
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q229
relation P180
type Q3305213
type Q2342494
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P180 resource:Q229 . { VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } . ?b rdf:type ?t } } } . FILTER ( ?k > ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?w rdf:type ?x } GROUP BY ?e } }
Cyprus
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Cyprus
relation depicts
type painting
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:depicts resource:Cyprus . { VALUES ( ?t ) { ( ontology:painting ) ( ontology:collectable ) } . ?b rdf:type ?t } } } . FILTER ( ?k > ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:painting ) } . ?w rdf:type ?x } GROUP BY ?e } }
[]
designation for an administrative territorial entity painting collectable
Q38 Q1011 Q79
SYSTEM
Italy, Cape Verde, Egypt
Q3883 Q131596 Q712 Q532 Q38 Q80644 Q1028 Q298 Q79 Q772 Q82025 Q1273 Q1011 Q913434
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q229
relation P180
type Q3305213
type Q2342494
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P180 resource:Q229 . { VALUES ( ?t ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } . ?b rdf:type ?t } } } . FILTER ( ?k > ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?w rdf:type ?x } GROUP BY ?e } }
Catanzaro farm Fiji village Italy Köngen Morocco Chile Egypt Drenthe horn Tuscany Cape Verde Les Halles
Italy Cape Verde Egypt
action greater
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Cyprus
relation depicts
type painting
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:depicts resource:Cyprus . { VALUES ( ?t ) { ( ontology:painting ) ( ontology:collectable ) } . ?b rdf:type ?t } } } . FILTER ( ?k > ?v ) . { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?k ) WHERE { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:painting ) } . ?w rdf:type ?x } GROUP BY ?e } }
[]