Simple Question (Direct)
Simple Question
Q8775523
P21
Q290
USER
Which sex does Emilio Alonso Sarmiento have ?
(Q8775523,P21,c(Q290))
action filter_type
action find
entity Q8775523
relation P21
type Q290
['Q8775523', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q8775523 property:P21 ?y . ?y rdf:type ontology:Q290 }
Emilio Alonso Sarmiento
action filter_type
action find
entity Emilio Alonso Sarmiento
relation gender
type sex
['Emilio Alonso Sarmiento', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Emilio_Alonso_Sarmiento property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q8775523,P21,c(Q290))
action filter_type
action find
entity Q8775523
relation P21
type Q290
Emilio Alonso Sarmiento has a [ANSWER]
['Q8775523', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q8775523 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Emilio Alonso Sarmiento has a male
male
action filter_type
action find
entity Emilio Alonso Sarmiento
relation gender
type sex
['Emilio Alonso Sarmiento', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Emilio_Alonso_Sarmiento property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8775523
P937
Q56061
USER
Which is the work location of Emilio Alonso Sarmiento ?
(Q8775523,P937,c(Q56061))
action filter_type
action find
entity Q8775523
relation P937
type Q56061
['Q8775523', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q8775523 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Emilio Alonso Sarmiento
action filter_type
action find
entity Emilio Alonso Sarmiento
relation work location
type administrative territorial entity
['Emilio Alonso Sarmiento', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Emilio_Alonso_Sarmiento property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q8775523,P937,c(Q56061))
action filter_type
action find
entity Q8775523
relation P937
type Q56061
[ANSWER] is the work location of Emilio Alonso Sarmiento
['Q8775523', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q8775523 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Madrid
Madrid is the work location of Emilio Alonso Sarmiento
Madrid
action filter_type
action find
entity Emilio Alonso Sarmiento
relation work location
type administrative territorial entity
['Emilio Alonso Sarmiento', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Emilio_Alonso_Sarmiento property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1752082
Q56061
USER
And what about Lutz Dijk?
(Q1752082,P937,c(Q56061))
action filter_type
action find
entity Q1752082
relation P937
type Q56061
['Q1752082', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1752082 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Lutz Dijk
action filter_type
action find
entity Lutz Dijk
relation work location
type administrative territorial entity
['Lutz Dijk', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Lutz_Dijk property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q727 Q5465
SYSTEM
Amsterdam, Cape Town
Q727 Q5465
(Q1752082,P937,c(Q56061))
action filter_type
action find
entity Q1752082
relation P937
type Q56061
[ANSWERS]
['Q1752082', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1752082 property:P937 ?x . ?x rdf:type ontology:Q56061 }
Amsterdam Cape Town
Amsterdam Cape Town
action filter_type
action find
entity Lutz Dijk
relation work location
type administrative territorial entity
['Lutz Dijk', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Lutz_Dijk property:work_location ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q25999311
P937
Q502895
USER
Do Lillian Cornell have those administrative territories as their work location ?
(Q25999311,P937,Q727) (Q25999311,P937,Q5465)
action is_in
entity prev_answer
action find
entity Q25999311
relation P937
['Q25999311', 'P937', 'Q727'] ['Q25999311', 'P937', 'Q5465']
ASK WHERE { resource:Q25999311 property:P937 ?l . VALUES ( ?l ) { ( resource:Q727 ) ( resource:Q5465 ) } }
Lillian Cornell
action is_in
entity prev_answer
action find
entity Lillian Cornell
relation work location
['Lillian Cornell', 'work location', 'Amsterdam'] ['Lillian Cornell', 'work location', 'Cape Town']
ASK WHERE { resource:Lillian_Cornell property:work_location ?l . VALUES ( ?l ) { ( resource:Amsterdam ) ( resource:Cape_Town ) } }
[]
common name
SYSTEM
NO
(Q25999311,P937,Q727) (Q25999311,P937,Q5465)
action is_in
entity prev_answer
action find
entity Q25999311
relation P937
[ANSWER]
['Q25999311', 'P937', 'Q727'] ['Q25999311', 'P937', 'Q5465']
ASK WHERE { resource:Q25999311 property:P937 ?l . VALUES ( ?l ) { ( resource:Q727 ) ( resource:Q5465 ) } }
No
action is_in
entity prev_answer
action find
entity Lillian Cornell
relation work location
['Lillian Cornell', 'work location', 'Amsterdam'] ['Lillian Cornell', 'work location', 'Cape Town']
ASK WHERE { resource:Lillian_Cornell property:work_location ?l . VALUES ( ?l ) { ( resource:Amsterdam ) ( resource:Cape_Town ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2807 Q518431
P190
Q56061
USER
Is Chimbote twin city of Madrid ?
(Q2807,P190,Q518431)
action is_in
entity Q518431
action find
entity Q2807
relation P190
['Q2807', 'P190', 'Q518431']
ASK WHERE { resource:Q2807 property:P190 resource:Q518431 }
Madrid Chimbote
action is_in
entity Chimbote
action find
entity Madrid
relation sister city
['Madrid', 'sister city', 'Chimbote']
ASK WHERE { resource:Madrid property:sister_city resource:Chimbote }
[]
administrative territorial entity
SYSTEM
YES
(Q2807,P190,Q518431)
action is_in
entity Q518431
action find
entity Q2807
relation P190
[ANSWER]
['Q2807', 'P190', 'Q518431']
ASK WHERE { resource:Q2807 property:P190 resource:Q518431 }
Yes
action is_in
entity Chimbote
action find
entity Madrid
relation sister city
['Madrid', 'sister city', 'Chimbote']
ASK WHERE { resource:Madrid property:sister_city resource:Chimbote }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q727
P530 P17
Q15617994
USER
Which administrative territories are Amsterdam present in and have a diplomatic relationship with Germany ?
AND((Q727,P17,c(Q15617994)), (Q183,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q727
relation P17
action find
entity Q183
relation P530
type Q15617994
{'AND': [['Q727', 'P17', {'concept': 'Q15617994'}], ['Q183', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q727 property:P17 ?w . resource:Q183 property:P530 ?w }
Germany Amsterdam
action filter_type
action intersection
action find
entity Amsterdam
relation country
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Amsterdam', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Amsterdam property:country ?w . resource:Germany property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
Q142 Q55
SYSTEM
France, Netherlands
Q142 Q55
AND((Q727,P17,c(Q15617994)), (Q183,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q727
relation P17
action find
entity Q183
relation P530
type Q15617994
[ANSWERS]
{'AND': [['Q727', 'P17', {'concept': 'Q15617994'}], ['Q183', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q727 property:P17 ?w . resource:Q183 property:P530 ?w }
France Netherlands
Which administrative territories are Amsterdam present in and have a diplomatic relationship with Germany
France Netherlands
action filter_type
action intersection
action find
entity Amsterdam
relation country
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Amsterdam', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Amsterdam property:country ?w . resource:Germany property:diplomatic_relation ?w }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17300047
P27
Q502895
USER
Are Alok Shrivastava a citizen of those administrative territories ?
(Q17300047,P27,Q142) (Q17300047,P27,Q55)
action is_in
entity prev_answer
action find
entity Q17300047
relation P27
['Q17300047', 'P27', 'Q142'] ['Q17300047', 'P27', 'Q55']
ASK WHERE { VALUES ( ?h ) { ( resource:Q142 ) ( resource:Q55 ) } . resource:Q17300047 property:P27 ?h }
Alok Shrivastava
action is_in
entity prev_answer
action find
entity Alok Shrivastava
relation country of citizenship
['Alok Shrivastava', 'country of citizenship', 'France'] ['Alok Shrivastava', 'country of citizenship', 'Netherlands']
ASK WHERE { VALUES ( ?h ) { ( resource:France ) ( resource:Netherlands ) } . resource:Alok_Shrivastava property:country_of_citizenship ?h }
[]
common name
SYSTEM
NO
(Q17300047,P27,Q142) (Q17300047,P27,Q55)
action is_in
entity prev_answer
action find
entity Q17300047
relation P27
[ANSWER]
['Q17300047', 'P27', 'Q142'] ['Q17300047', 'P27', 'Q55']
ASK WHERE { VALUES ( ?h ) { ( resource:Q142 ) ( resource:Q55 ) } . resource:Q17300047 property:P27 ?h }
No
action is_in
entity prev_answer
action find
entity Alok Shrivastava
relation country of citizenship
['Alok Shrivastava', 'country of citizenship', 'France'] ['Alok Shrivastava', 'country of citizenship', 'Netherlands']
ASK WHERE { VALUES ( ?h ) { ( resource:France ) ( resource:Netherlands ) } . resource:Alok_Shrivastava property:country_of_citizenship ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q727
P276
Q838948 Q2198855
USER
How many works of art or cultural movements are situated at Amsterdam ?
(c(Q838948),P276,Q727) (c(Q2198855),P276,Q727)
action count
action union
action filter_type
action find_reverse
entity Q727
relation P276
type Q838948
action filter_type
action find_reverse
entity Q727
relation P276
type Q2198855
[{'concept': 'Q838948'}, 'P276', 'Q727'] [{'concept': 'Q2198855'}, 'P276', 'Q727']
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q2198855 ) } }
Amsterdam
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation location
type work of art
action filter_type
action find_reverse
entity Amsterdam
relation location
type cultural movement
[{'concept': 'work of art'}, 'location', 'Amsterdam'] [{'concept': 'cultural movement'}, 'location', 'Amsterdam']
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:cultural_movement ) } }
[]
work of art cultural movement
SYSTEM
2
Q212611 Q920580
(c(Q838948),P276,Q727) (c(Q2198855),P276,Q727)
action count
action union
action filter_type
action find_reverse
entity Q727
relation P276
type Q838948
action filter_type
action find_reverse
entity Q727
relation P276
type Q2198855
[ANSWER]
[{'concept': 'Q838948'}, 'P276', 'Q727'] [{'concept': 'Q2198855'}, 'P276', 'Q727']
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q2198855 ) } }
COBRA De Schreeuw
2
action count
action union
action filter_type
action find_reverse
entity Amsterdam
relation location
type work of art
action filter_type
action find_reverse
entity Amsterdam
relation location
type cultural movement
[{'concept': 'work of art'}, 'location', 'Amsterdam'] [{'concept': 'cultural movement'}, 'location', 'Amsterdam']
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f rdf:type ?d . VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:cultural_movement ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2807 Q4882677
P190
Q56061
USER
Is Belgrave, Tamworth twin town of Madrid ?
(Q2807,P190,Q4882677)
action is_in
entity Q4882677
action find
entity Q2807
relation P190
['Q2807', 'P190', 'Q4882677']
ASK WHERE { resource:Q2807 property:P190 resource:Q4882677 }
Madrid Belgrave, Tamworth
action is_in
entity Belgrave, Tamworth
action find
entity Madrid
relation sister city
['Madrid', 'sister city', 'Belgrave, Tamworth']
ASK WHERE { resource:Madrid property:sister_city resource:Belgrave,_Tamworth }
[]
administrative territorial entity
SYSTEM
NO
(Q2807,P190,Q4882677)
action is_in
entity Q4882677
action find
entity Q2807
relation P190
[ANSWER]
['Q2807', 'P190', 'Q4882677']
ASK WHERE { resource:Q2807 property:P190 resource:Q4882677 }
No
action is_in
entity Belgrave, Tamworth
action find
entity Madrid
relation sister city
['Madrid', 'sister city', 'Belgrave, Tamworth']
ASK WHERE { resource:Madrid property:sister_city resource:Belgrave,_Tamworth }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q232
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with greater number of administrative territories than Kazakhstan ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q232
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q232 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?j ) }
Kazakhstan
action greater
action find_reverse_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 Kazakhstan
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 ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Kazakhstan property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q37 Q711 Q710 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q1013 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q232
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with greater number of administrative territories than Kazakhstan
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q232 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?j ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Lithuania Mongolia Kiribati Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Lesotho Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have a diplomatic relationship with greater number of administrative territories than Kazakhstan
Italy Brazil United States of America
action greater
action find_reverse_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 Kazakhstan
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 ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?a ) WHERE { ?s property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Kazakhstan property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q884
P530
Q15617994 Q15617994
USER
And what about South Korea?
(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 Q884
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P530 resource:Q884 . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?f ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } }
South Korea
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 South Korea
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 ?y WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:diplomatic_relation resource:South_Korea . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?f ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
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 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q822 Q241 Q31 Q30 Q38 Q27 Q222 Q347 Q17 Q213 Q916 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 Q884
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P530 resource:Q884 . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?f ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?y } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Lebanon Cuba Belgium United States of America Italy Ireland Albania Liechtenstein Japan Czech Republic Angola Egypt Libya Cape Verde 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_reverse
entity South Korea
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 ?y WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:diplomatic_relation resource:South_Korea . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?v ) . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?f ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q142
P840
Q15416 Q201658
USER
How many television programs and film genres have their setting located at France ?
(c(Q15416),P840,Q142) (c(Q201658),P840,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P840
type Q15416
action filter_type
action find_reverse
entity Q142
relation P840
type Q201658
[{'concept': 'Q15416'}, 'P840', 'Q142'] [{'concept': 'Q201658'}, 'P840', 'Q142']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:P840 resource:Q142 . ?y rdf:type ontology:Q15416 } UNION { ?y rdf:type ontology:Q201658 . ?y property:P840 resource:Q142 } }
France
action count
action union
action filter_type
action find_reverse
entity France
relation narrative location
type television program
action filter_type
action find_reverse
entity France
relation narrative location
type film genre
[{'concept': 'television program'}, 'narrative location', 'France'] [{'concept': 'film genre'}, 'narrative location', 'France']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:narrative_location resource:France . ?y rdf:type ontology:television_program } UNION { ?y rdf:type ontology:film_genre . ?y property:narrative_location resource:France } }
[]
television program film genre
SYSTEM
2 television programs and 1 film genres
Q504053 Q15632463 Q425628
(c(Q15416),P840,Q142) (c(Q201658),P840,Q142)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P840
type Q15416
action filter_type
action find_reverse
entity Q142
relation P840
type Q201658
[ANSWER]
[{'concept': 'Q15416'}, 'P840', 'Q142'] [{'concept': 'Q201658'}, 'P840', 'Q142']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:P840 resource:Q142 . ?y rdf:type ontology:Q15416 } UNION { ?y rdf:type ontology:Q201658 . ?y property:P840 resource:Q142 } }
Ocean's Twelve The Musketeers 'Allo 'Allo!
2 television programs and 1 film genres
action count
action union
action filter_type
action find_reverse
entity France
relation narrative location
type television program
action filter_type
action find_reverse
entity France
relation narrative location
type film genre
[{'concept': 'television program'}, 'narrative location', 'France'] [{'concept': 'film genre'}, 'narrative location', 'France']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { ?y property:narrative_location resource:France . ?y rdf:type ontology:television_program } UNION { ?y rdf:type ontology:film_genre . ?y property:narrative_location resource:France } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P138
Q17444909
USER
Which astronomical object type has Brazil as its toponym ?
(c(Q17444909),P138,Q155)
action filter_type
action find_reverse
entity Q155
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q155']
SELECT DISTINCT ?q WHERE { ?q property:P138 resource:Q155 . ?q rdf:type ontology:Q17444909 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Brazil']
SELECT DISTINCT ?q WHERE { ?q property:named_after resource:Brazil . ?q rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q150378
SYSTEM
293 Brasilia
Q150378
(c(Q17444909),P138,Q155)
action filter_type
action find_reverse
entity Q155
relation P138
type Q17444909
[ANSWER] has Brazil as its toponym
[{'concept': 'Q17444909'}, 'P138', 'Q155']
SELECT DISTINCT ?q WHERE { ?q property:P138 resource:Q155 . ?q rdf:type ontology:Q17444909 }
293 Brasilia
293 Brasilia has Brazil as its toponym
293 Brasilia
action filter_type
action find_reverse
entity Brazil
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Brazil']
SELECT DISTINCT ?q WHERE { ?q property:named_after resource:Brazil . ?q rdf:type ontology:astronomical_object_type }
[]