Simple Question (Direct)
Simple Question
Q591020
P21
Q290
USER
Which sex does Kleggie Hermsen possess ?
(Q591020,P21,c(Q290))
action filter_type
action find
entity Q591020
relation P21
type Q290
['Q591020', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q591020 property:P21 ?u . ?u rdf:type ontology:Q290 }
Kleggie Hermsen
action filter_type
action find
entity Kleggie Hermsen
relation gender
type sex
['Kleggie Hermsen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kleggie_Hermsen property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q591020,P21,c(Q290))
action filter_type
action find
entity Q591020
relation P21
type Q290
Kleggie Hermsen possesses un [ANSWER]
['Q591020', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q591020 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
Kleggie Hermsen possesses un male
male
action filter_type
action find
entity Kleggie Hermsen
relation gender
type sex
['Kleggie Hermsen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Kleggie_Hermsen property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q591020
P641
Q349
USER
Which sport was that person a part of ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q591020
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q591020 property:P641 ?y . ?y rdf:type ontology:Q349 }
Kleggie Hermsen
action filter_type
action find
entity Kleggie Hermsen
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Kleggie_Hermsen property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q591020
relation P641
type Q349
The [ANSWER] was that person a part of
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q591020 property:P641 ?y . ?y rdf:type ontology:Q349 }
basketball
The basketball was that person a part of
basketball
action filter_type
action find
entity Kleggie Hermsen
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:Kleggie_Hermsen property:sport ?y . ?y rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P101
Q349 Q2342494
USER
Which sports do greater number of collectables belong to than that sport ?
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q5372
relation P101
type Q349
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ontology:Q349 . resource:Q5372 property:P101 ?t } } . FILTER ( ?v > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P101 ?n . ?n rdf:type ontology:Q349 . ?l rdf:type ontology:Q2342494 } GROUP BY ?n } }
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity basketball
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ontology:sport . resource:basketball property:field_of_work ?t } } . FILTER ( ?v > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:field_of_work ?n . ?n rdf:type ontology:sport . ?l rdf:type ontology:collectable } GROUP BY ?n } }
[]
sport collectable
Q1109032
SYSTEM
college football
Q1109032
(c(Q2342494),P101,c(Q349))
action greater
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_type
action find
entity Q5372
relation P101
type Q349
[ANSWER] greater number of collectables belong to than that sport
[{'concept': 'Q2342494'}, 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ontology:Q349 . resource:Q5372 property:P101 ?t } } . FILTER ( ?v > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P101 ?n . ?n rdf:type ontology:Q349 . ?l rdf:type ontology:Q2342494 } GROUP BY ?n } }
college football
College football greater number of collectables belong to than that sport
college football
action greater
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_type
action find
entity basketball
relation field of work
type sport
[{'concept': 'collectable'}, 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { ?t rdf:type ontology:sport . resource:basketball property:field_of_work ?t } } . FILTER ( ?v > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:field_of_work ?n . ?n rdf:type ontology:sport . ?l rdf:type ontology:collectable } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16337084 Q591020
P27
Q15617994
USER
Which administrative territories are Kleggie Hermsen or Carlos Roberto Silva a civilian of ?
OR((Q591020,P27,c(Q15617994)), (Q16337084,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q591020
relation P27
action find
entity Q16337084
relation P27
type Q15617994
{'OR': [['Q591020', 'P27', {'concept': 'Q15617994'}], ['Q16337084', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q591020 property:P27 ?o } UNION { resource:Q16337084 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Carlos Roberto Silva Kleggie Hermsen
action filter_type
action union
action find
entity Kleggie Hermsen
relation country of citizenship
action find
entity Carlos Roberto Silva
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kleggie Hermsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlos Roberto Silva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Kleggie_Hermsen property:country_of_citizenship ?o } UNION { resource:Carlos_Roberto_Silva property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q30
SYSTEM
Brazil, United States of America
Q155 Q30
OR((Q591020,P27,c(Q15617994)), (Q16337084,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q591020
relation P27
action find
entity Q16337084
relation P27
type Q15617994
[ANSWERS] are Kleggie Hermsen or Carlos Roberto Silva a civilian of
{'OR': [['Q591020', 'P27', {'concept': 'Q15617994'}], ['Q16337084', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q591020 property:P27 ?o } UNION { resource:Q16337084 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Brazil United States of America
Brazil and United States of America are Kleggie Hermsen or Carlos Roberto Silva a civilian of
Brazil United States of America
action filter_type
action union
action find
entity Kleggie Hermsen
relation country of citizenship
action find
entity Carlos Roberto Silva
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kleggie Hermsen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Carlos Roberto Silva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Kleggie_Hermsen property:country_of_citizenship ?o } UNION { resource:Carlos_Roberto_Silva property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with approximately 18 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?g ) WHERE { ?w property:P530 ?r . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?g = 18 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?g ) WHERE { ?w property:diplomatic_relation ?r . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?g = 18 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
13
Q801 Q805 Q142 Q148 Q159 Q30 Q929 Q225 Q17 Q114 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 18
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?g ) WHERE { ?w property:P530 ?r . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?g = 18 ) }
Israel Yemen France People's Republic of China Russia United States of America Central African Republic Bosnia and Herzegovina Japan Kenya Syria Cape Verde Zambia
13
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 18
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?g ) WHERE { ?w property:diplomatic_relation ?r . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?g = 18 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q593306 Q155
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Brazil or are Le Villey located in ?
OR((Q155,P530,c(Q15617994)), (Q593306,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q593306
relation P17
type Q15617994
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q593306', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q155 property:P530 ?a } UNION { resource:Q593306 property:P17 ?a } } . ?a rdf:type ontology:Q15617994 }
Le Villey Brazil
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Le Villey
relation country
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Le Villey', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Brazil property:diplomatic_relation ?a } UNION { resource:Le_Villey property:country ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43 Q739 Q733 Q145 Q244 Q790 Q801 Q1029 Q423 Q213
SYSTEM
Some of them are Turkey, Colombia, Paraguay, United Kingdom, Barbados, Haiti, Israel, Mozambique, North Korea, Czech Republic
Q783 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q96 Q17 Q30 Q36 Q79 Q77 Q38 Q1016 Q739 Q423 Q717 Q983 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
OR((Q155,P530,c(Q15617994)), (Q593306,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q593306
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Brazil or are Le Villey located in
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q593306', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q155 property:P530 ?a } UNION { resource:Q593306 property:P17 ?a } } . ?a rdf:type ontology:Q15617994 }
Honduras Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Mexico Japan United States of America Poland Egypt Uruguay Italy Libya Colombia North Korea Venezuela Equatorial Guinea Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
Turkey, Colombia, Paraguay, United Kingdom, Barbados, Haiti, Israel, Mozambique, North Korea and Czech Republic have diplomatic relationships with Brazil or are Le Villey located in
Turkey Colombia Paraguay United Kingdom Barbados Haiti Israel Mozambique North Korea Czech Republic
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Le Villey
relation country
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Le Villey', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Brazil property:diplomatic_relation ?a } UNION { resource:Le_Villey property:country ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have diplomatic associations with those ones ?
(Q155,P530,Q43) (Q155,P530,Q739) (Q155,P530,Q733) (Q155,P530,Q145) (Q155,P530,Q244) (Q155,P530,Q790) (Q155,P530,Q801) (Q155,P530,Q1029) (Q155,P530,Q423) (Q155,P530,Q213)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q43'] ['Q155', 'P530', 'Q739'] ['Q155', 'P530', 'Q733'] ['Q155', 'P530', 'Q145'] ['Q155', 'P530', 'Q244'] ['Q155', 'P530', 'Q790'] ['Q155', 'P530', 'Q801'] ['Q155', 'P530', 'Q1029'] ['Q155', 'P530', 'Q423'] ['Q155', 'P530', 'Q213']
ASK WHERE { VALUES ( ?f ) { ( resource:Q783 ) ( resource:Q801 ) ( resource:Q800 ) } . resource:Q155 property:P530 ?f }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Turkey'] ['Brazil', 'diplomatic relation', 'Colombia'] ['Brazil', 'diplomatic relation', 'Paraguay'] ['Brazil', 'diplomatic relation', 'United Kingdom'] ['Brazil', 'diplomatic relation', 'Barbados'] ['Brazil', 'diplomatic relation', 'Haiti'] ['Brazil', 'diplomatic relation', 'Israel'] ['Brazil', 'diplomatic relation', 'Mozambique'] ['Brazil', 'diplomatic relation', 'North Korea'] ['Brazil', 'diplomatic relation', 'Czech Republic']
ASK WHERE { VALUES ( ?f ) { ( resource:Honduras ) ( resource:Israel ) ( resource:Costa_Rica ) } . resource:Brazil property:diplomatic_relation ?f }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q43) (Q155,P530,Q739) (Q155,P530,Q733) (Q155,P530,Q145) (Q155,P530,Q244) (Q155,P530,Q790) (Q155,P530,Q801) (Q155,P530,Q1029) (Q155,P530,Q423) (Q155,P530,Q213)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q43'] ['Q155', 'P530', 'Q739'] ['Q155', 'P530', 'Q733'] ['Q155', 'P530', 'Q145'] ['Q155', 'P530', 'Q244'] ['Q155', 'P530', 'Q790'] ['Q155', 'P530', 'Q801'] ['Q155', 'P530', 'Q1029'] ['Q155', 'P530', 'Q423'] ['Q155', 'P530', 'Q213']
ASK WHERE { VALUES ( ?f ) { ( resource:Q783 ) ( resource:Q801 ) ( resource:Q800 ) } . resource:Q155 property:P530 ?f }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Turkey'] ['Brazil', 'diplomatic relation', 'Colombia'] ['Brazil', 'diplomatic relation', 'Paraguay'] ['Brazil', 'diplomatic relation', 'United Kingdom'] ['Brazil', 'diplomatic relation', 'Barbados'] ['Brazil', 'diplomatic relation', 'Haiti'] ['Brazil', 'diplomatic relation', 'Israel'] ['Brazil', 'diplomatic relation', 'Mozambique'] ['Brazil', 'diplomatic relation', 'North Korea'] ['Brazil', 'diplomatic relation', 'Czech Republic']
ASK WHERE { VALUES ( ?f ) { ( resource:Honduras ) ( resource:Israel ) ( resource:Costa_Rica ) } . resource:Brazil property:diplomatic_relation ?f }
[]