Simple Question (Direct)
Simple Question
Q4013412
P106
Q12737077
USER
What is the profession of Vincenzo Monaldi ?
(Q4013412,P106,c(Q12737077))
action filter_type
action find
entity Q4013412
relation P106
type Q12737077
['Q4013412', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4013412 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Vincenzo Monaldi
action filter_type
action find
entity Vincenzo Monaldi
relation occupation
type occupation
['Vincenzo Monaldi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Vincenzo_Monaldi property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4013412,P106,c(Q12737077))
action filter_type
action find
entity Q4013412
relation P106
type Q12737077
The profession of Vincenzo Monaldi is an [ANSWER]
['Q4013412', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4013412 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football player
The profession of Vincenzo Monaldi is an association football player
association football player
action filter_type
action find
entity Vincenzo Monaldi
relation occupation
type occupation
['Vincenzo Monaldi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Vincenzo_Monaldi property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4013412
P19
Q15617994
USER
Which administrative territory was that person born in ?
(Q937857,P19,c(Q15617994))
action filter_type
action find
entity Q4013412
relation P19
type Q15617994
['Q937857', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q4013412 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Vincenzo Monaldi
action filter_type
action find
entity Vincenzo Monaldi
relation place of birth
type designation for an administrative territorial entity
['association football player', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Vincenzo_Monaldi property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q83355
SYSTEM
Porto Recanati
Q83355
(Q937857,P19,c(Q15617994))
action filter_type
action find
entity Q4013412
relation P19
type Q15617994
That person was born in [ANSWER]
['Q937857', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q4013412 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Porto Recanati
That person was born in Porto Recanati
Porto Recanati
action filter_type
action find
entity Vincenzo Monaldi
relation place of birth
type designation for an administrative territorial entity
['association football player', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Vincenzo_Monaldi property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q83355 Q124110 Q3111231
P47
Q56061
USER
Is that administrative territory bordered by Loreto and Gornje Trnjane ?
(Q83355,P47,Q124110) (Q83355,P47,Q3111231)
action is_in
entity Q83355
action intersection
action find_reverse
entity Q124110
relation P47
action find_reverse
entity Q3111231
relation P47
['Q83355', 'P47', 'Q124110'] ['Q83355', 'P47', 'Q3111231']
ASK WHERE { resource:Q83355 property:P47 resource:Q124110 . resource:Q83355 property:P47 resource:Q3111231 }
Porto Recanati Loreto Gornje Trnjane
action is_in
entity Porto Recanati
action intersection
action find_reverse
entity Loreto
relation shares border with
action find_reverse
entity Gornje Trnjane
relation shares border with
['Porto Recanati', 'shares border with', 'Loreto'] ['Porto Recanati', 'shares border with', 'Gornje Trnjane']
ASK WHERE { resource:Porto_Recanati property:shares_border_with resource:Loreto . resource:Porto_Recanati property:shares_border_with resource:Gornje_Trnjane }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q83355,P47,Q124110) (Q83355,P47,Q3111231)
action is_in
entity Q83355
action intersection
action find_reverse
entity Q124110
relation P47
action find_reverse
entity Q3111231
relation P47
[ANSWER]
['Q83355', 'P47', 'Q124110'] ['Q83355', 'P47', 'Q3111231']
ASK WHERE { resource:Q83355 property:P47 resource:Q124110 . resource:Q83355 property:P47 resource:Q3111231 }
YES and NO respectively
action is_in
entity Porto Recanati
action intersection
action find_reverse
entity Loreto
relation shares border with
action find_reverse
entity Gornje Trnjane
relation shares border with
['Porto Recanati', 'shares border with', 'Loreto'] ['Porto Recanati', 'shares border with', 'Gornje Trnjane']
ASK WHERE { resource:Porto_Recanati property:shares_border_with resource:Loreto . resource:Porto_Recanati property:shares_border_with resource:Gornje_Trnjane }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P608
Q464980 Q1656682 Q502895
USER
How many people were presented at around 2 exhibitions and events ?
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
value 2
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?c WHERE { { ?c property:P608 ?e . ?e rdf:type ontology:Q464980 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P608 ?e . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q1656682 } } GROUP BY ?c } . FILTER ( ?l = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?c WHERE { { ?c property:exhibition_history ?e . ?e rdf:type ontology:exhibition . ?c rdf:type ontology:common_name } UNION { ?c property:exhibition_history ?e . ?c rdf:type ontology:common_name . ?e rdf:type ontology:event } } GROUP BY ?c } . FILTER ( ?l = 2 ) }
[]
exhibition event common name
SYSTEM
2
Q20888837 Q3335569
(c(Q502895),P608,c(Q464980)|c(Q1656682))
action count
action approx
action union
action find_tuple_counts
relation P608
type Q502895
type Q464980
action find_tuple_counts
relation P608
type Q502895
type Q1656682
value 2
[ANSWER]
[{'concept': 'Q502895'}, 'P608', [{'concept': 'Q464980'}, {'concept': 'Q1656682'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?c WHERE { { ?c property:P608 ?e . ?e rdf:type ontology:Q464980 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P608 ?e . ?c rdf:type ontology:Q502895 . ?e rdf:type ontology:Q1656682 } } GROUP BY ?c } . FILTER ( ?l = 2 ) }
Angélique Bègue Nancy Elizabeth Prophet
2
action count
action approx
action union
action find_tuple_counts
relation exhibition history
type common name
type exhibition
action find_tuple_counts
relation exhibition history
type common name
type event
value 2
[{'concept': 'common name'}, 'exhibition history', [{'concept': 'exhibition'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) ?c WHERE { { ?c property:exhibition_history ?e . ?e rdf:type ontology:exhibition . ?c rdf:type ontology:common_name } UNION { ?c property:exhibition_history ?e . ?c rdf:type ontology:common_name . ?e rdf:type ontology:event } } GROUP BY ?c } . FILTER ( ?l = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q796
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with more number of administrative territories than Iraq ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q796
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P530 resource:Q796 . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?s ) WHERE { ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?f property:P530 ?y } GROUP BY ?f } }
Iraq
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:diplomatic_relation resource:Iraq . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?s ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?y } GROUP BY ?f } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q30 Q38 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q796
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with more number of administrative territories than Iraq
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P530 resource:Q796 . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?s ) WHERE { ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?f property:P530 ?y } GROUP BY ?f } }
Israel Yemen India France United Kingdom People's Republic of China Serbia Russia Turkey Brazil United States of America Italy Japan Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of administrative territories than Iraq
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:diplomatic_relation resource:Iraq . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?a ) . { SELECT DISTINCT ?f ( COUNT ( ?y ) AS ?s ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?y } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q734
P530
Q15617994 Q15617994
USER
And what about Guyana?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q734
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?z ) WHERE { ?t property:P530 ?f . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q734 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?j ) }
Guyana
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Guyana
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?z ) WHERE { ?t property:diplomatic_relation ?f . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Guyana property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q734
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?z ) WHERE { ?t property:P530 ?f . ?t rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q734 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?j ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Guyana
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?z ) WHERE { ?t property:diplomatic_relation ?f . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Guyana property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4013412
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Vincenzo Monaldi ?
(Q4013412,P27,c(Q15617994))
action filter_type
action find
entity Q4013412
relation P27
type Q15617994
['Q4013412', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q4013412 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Vincenzo Monaldi
action filter_type
action find
entity Vincenzo Monaldi
relation country of citizenship
type designation for an administrative territorial entity
['Vincenzo Monaldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vincenzo_Monaldi property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q4013412,P27,c(Q15617994))
action filter_type
action find
entity Q4013412
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Vincenzo Monaldi
['Q4013412', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q4013412 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of Vincenzo Monaldi
Italy
action filter_type
action find
entity Vincenzo Monaldi
relation country of citizenship
type designation for an administrative territorial entity
['Vincenzo Monaldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Vincenzo_Monaldi property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have tactful political relations with Brazil ?
(c(Q1048835),P530,Q155) (c(Q15617994),P530,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q155
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q15617994'}, 'P530', 'Q155']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P530 resource:Q155 . ?r rdf:type ontology:Q1048835 } UNION { ?r property:P530 resource:Q155 . ?r rdf:type ontology:Q15617994 } }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:diplomatic_relation resource:Brazil . ?r rdf:type ontology:political_territorial_entity } UNION { ?r property:diplomatic_relation resource:Brazil . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
5 political territories and 56 administrative territories
Q96 Q801 Q800 Q843 Q184 Q1029 Q183 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q766 Q148 Q783 Q17 Q16 Q36 Q35 Q77 Q38 Q1016 Q739 Q423 Q717 Q1033 Q733 Q1011 Q962 Q734 Q298 Q408 Q252 Q30 Q399 Q403 Q159 Q736 Q258 Q750 Q212 Q213 Q983 Q45 Q230 Q43 Q41 Q790 Q796 Q794 Q1049 Q953 Q79 Q29 Q958 Q917 Q916
(c(Q1048835),P530,Q155) (c(Q15617994),P530,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q155
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q15617994'}, 'P530', 'Q155']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:P530 resource:Q155 . ?r rdf:type ontology:Q1048835 } UNION { ?r property:P530 resource:Q155 . ?r rdf:type ontology:Q15617994 } }
Mexico Israel Costa Rica Pakistan Belarus Mozambique Germany Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom Jamaica People's Republic of China Honduras Japan Canada Poland Denmark Uruguay Italy Libya Colombia North Korea Venezuela Nigeria Paraguay Cape Verde Benin Guyana Chile Australia Indonesia United States of America Armenia Serbia Russia Ecuador South Africa Bolivia Ukraine Czech Republic Equatorial Guinea Portugal Georgia Turkey Greece Haiti Iraq Iran Sudan Zambia Egypt Spain South Sudan Bhutan Angola
5 political territories and 56 administrative territories
action count
action union
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil']
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { ?r property:diplomatic_relation resource:Brazil . ?r rdf:type ontology:political_territorial_entity } UNION { ?r property:diplomatic_relation resource:Brazil . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q486972 Q56061 Q15617994
USER
Which administrative territories contain atleast 2 human settlements or administrative territories as their capital ?
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 2
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?g } . FILTER ( ?a >= 2 ) }
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?g } . FILTER ( ?a >= 2 ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
Q30 Q230 Q17
SYSTEM
United States of America, Georgia, Japan
Q258 Q1020 Q41 Q30 Q230 Q199688 Q12536 Q517333 Q17 Q160307
(c(Q15617994),P36,c(Q486972)|c(Q56061))
action atleast
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q56061
value 2
[ANSWERS] contain atleast 2 human settlements or administrative territories as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?g } . FILTER ( ?a >= 2 ) }
South Africa Malawi Greece United States of America Georgia Almohad Abbasid caliphate Principality of Polotsk Japan Fatimid caliphate
United States of America, Georgia and Japan contain atleast 2 human settlements or administrative territories as their capital
United States of America Georgia Japan
action atleast
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?v rdf:type ?d . VALUES ( ?d ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?g } . FILTER ( ?a >= 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q79529 Q56061
USER
Which administrative territories are namesakes of around 1 chemical substances or administrative territories ?
(c(Q79529)|c(Q56061),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q56061
value 1
[[{'concept': 'Q79529'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?i WHERE { { ?j property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q79529 } UNION { ?j property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[[{'concept': 'chemical substance'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?i WHERE { { ?j property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:chemical_substance } UNION { ?j property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
[]
designation for an administrative territorial entity chemical substance administrative territorial entity
Q55 Q142 Q36
SYSTEM
Netherlands, France, Poland
Q55 Q45 Q36 Q39 Q3139 Q40131 Q223 Q654138 Q142 Q770 Q971
(c(Q79529)|c(Q56061),P138,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q79529
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q56061
value 1
[ANSWERS] are namesakes of around 1 chemical substances or administrative territories
[[{'concept': 'Q79529'}, {'concept': 'Q56061'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?i WHERE { { ?j property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q79529 } UNION { ?j property:P138 ?i . ?i rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q56061 } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
Netherlands Portugal Poland Switzerland Alpes-Maritimes Chiavenna Greenland Rhede, Lower Saxony France Friesland Republic of the Congo
Netherlands, France and Poland are namesakes of around 1 chemical substances or administrative territories
Netherlands France Poland
action approx
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type chemical substance
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
value 1
[[{'concept': 'chemical substance'}, {'concept': 'administrative territorial entity'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) ?i WHERE { { ?j property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:chemical_substance } UNION { ?j property:named_after ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q15416
USER
Which administrative territories are the origin of more number of film genres and television programs than that administrative territory ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity film genre television program
Comparative|More/Less|Mult. entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:P495 ?y } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean Poland ?
Poland
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?f ) { ( ?z ) ( ?x ) } . ?f property:country_of_origin ?y } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
USER
No, I meant France. Could you tell me the answer for that?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
Q142
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q30 Q145
SYSTEM
Italy, United States of America, United Kingdom
Q668 Q145 Q884 Q30 Q38 Q96 Q17
(c(Q201658)|c(Q15416),P495,c(Q15617994))
[ANSWERS] are the origin of more number of film genres and television programs than that administrative territory
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
India United Kingdom South Korea United States of America Italy Mexico Japan
Italy, United States of America and United Kingdom are the origin of more number of film genres and television programs than that administrative territory
Italy United States of America United Kingdom
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q30 Q145
P6
Q502895
USER
Who are the heads of the government of Italy, United States of America and United Kingdom ?
(Q38,P6,c(Q502895)) (Q30,P6,c(Q502895)) (Q145,P6,c(Q502895))
action union
action filter_type
action find
entity Q38
relation P6
type Q502895
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q145
relation P6
type Q502895
['Q38', 'P6', {'concept': 'Q502895'}] ['Q30', 'P6', {'concept': 'Q502895'}] ['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q502895 . resource:Q38 property:P6 ?p } UNION { resource:Q30 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
Italy United States of America United Kingdom
action union
action filter_type
action find
entity Italy
relation head of government
type common name
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}] ['United States of America', 'head of government', {'concept': 'common name'}] ['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:common_name . resource:Italy property:head_of_government ?p } UNION { resource:United_States_of_America property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q47563 Q674957 Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q9588 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891 Q192 Q264766
(Q38,P6,c(Q502895)) (Q30,P6,c(Q502895)) (Q145,P6,c(Q502895))
action union
action filter_type
action find
entity Q38
relation P6
type Q502895
action filter_type
action find
entity Q30
relation P6
type Q502895
action filter_type
action find
entity Q145
relation P6
type Q502895
The heads of the government of Italy , United States of America and United Kingdom are President [ANSWERS]
['Q38', 'P6', {'concept': 'Q502895'}] ['Q30', 'P6', {'concept': 'Q502895'}] ['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q502895 . resource:Q38 property:P6 ?p } UNION { resource:Q30 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
Matteo Renzi Enrico Letta Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk David Cameron Theresa May
The heads of the government of Italy , United States of America and United Kingdom are President Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action union
action filter_type
action find
entity Italy
relation head of government
type common name
action filter_type
action find
entity United States of America
relation head of government
type common name
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['Italy', 'head of government', {'concept': 'common name'}] ['United States of America', 'head of government', {'concept': 'common name'}] ['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:common_name . resource:Italy property:head_of_government ?p } UNION { resource:United_States_of_America property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]