Simple Question (Direct)
Simple Question
Q5546797
P21
Q290
USER
What is the sex of John Anthony Allan ?
(Q5546797,P21,c(Q290))
action filter_type
action find
entity Q5546797
relation P21
type Q290
['Q5546797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q5546797 property:P21 ?q . ?q rdf:type ontology:Q290 }
John Anthony Allan
action filter_type
action find
entity John Anthony Allan
relation gender
type sex
['John Anthony Allan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:John_Anthony_Allan property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5546797,P21,c(Q290))
action filter_type
action find
entity Q5546797
relation P21
type Q290
The sex of John Anthony Allan is the [ANSWER]
['Q5546797', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q5546797 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of John Anthony Allan is the male
male
action filter_type
action find
entity John Anthony Allan
relation gender
type sex
['John Anthony Allan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:John_Anthony_Allan property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5546797
P106
Q12737077
USER
What does that person do for a living ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q5546797
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q5546797 property:P106 ?m }
John Anthony Allan
action filter_type
action find
entity John Anthony Allan
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:John_Anthony_Allan property:occupation ?m }
[]
occupation
Q901402
SYSTEM
geographer
Q901402
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q5546797
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q5546797 property:P106 ?m }
geographer
Geographer that person does for a living
geographer
action filter_type
action find
entity John Anthony Allan
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:John_Anthony_Allan property:occupation ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q901402
P425
Q1047113
USER
Who has that one as the associated field of occupation ?
(Q901402,P425,c(Q1047113))
action filter_type
action find
entity Q901402
relation P425
type Q1047113
['Q901402', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?q WHERE { resource:Q901402 property:P425 ?q . ?q rdf:type ontology:Q1047113 }
geographer
action filter_type
action find
entity geographer
relation field of this occupation
type special field
['geographer', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?q WHERE { resource:geographer property:field_of_this_occupation ?q . ?q rdf:type ontology:special_field }
[]
special field
Q1071
SYSTEM
geography
Q1071
(Q901402,P425,c(Q1047113))
action filter_type
action find
entity Q901402
relation P425
type Q1047113
[ANSWER] has that one as the associated field of occupation
['Q901402', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?q WHERE { resource:Q901402 property:P425 ?q . ?q rdf:type ontology:Q1047113 }
geography
Geography has that one as the associated field of occupation
geography
action filter_type
action find
entity geographer
relation field of this occupation
type special field
['geographer', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?q WHERE { resource:geographer property:field_of_this_occupation ?q . ?q rdf:type ontology:special_field }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q730906
P361
Q58778 Q1047113
USER
Which systems are approximately the same number of special fields a component of as MKSA system of units ?
(c(Q1047113),P361,c(Q58778))
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q730906
relation P361
type Q58778
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P361 ?k . ?k rdf:type ontology:Q58778 . ?n rdf:type ontology:Q1047113 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q730906 property:P361 ?t . ?t rdf:type ontology:Q58778 } } . FILTER ( ?l = ?g ) }
MKSA system of units
action approx
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity MKSA system of units
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:part_of ?k . ?k rdf:type ontology:system . ?n rdf:type ontology:special_field } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:MKSA_system_of_units property:part_of ?t . ?t rdf:type ontology:system } } . FILTER ( ?l = ?g ) }
[]
system special field
Q1 Q835696 Q889737
SYSTEM
universe, Deep Space Network, ground segment
Q829055 Q757568 Q2251494 Q396622 Q1116609 Q1824206 Q468999 Q289 Q939202 Q3234036 Q730906 Q192161 Q1213508 Q622662 Q12457 Q483426 Q1415395 Q607081 Q2151621 Q6456916 Q720362 Q2595720 Q1780543 Q8091 Q28108 Q26240 Q16203461 Q1127794 Q2518196 Q220695 Q601401 Q161779 Q889737 Q16782623 Q188193 Q620565 Q1370826 Q1016708 Q27666180 Q1368944 Q126793 Q746359 Q5466615 Q1 Q14290846 Q435964 Q862571 Q16070574 Q17488292 Q512417 Q1068715 Q3565868 Q503327 Q49845 Q3477363 Q207652 Q3491904 Q1660132 Q835696 Q2285982
(c(Q1047113),P361,c(Q58778))
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q1047113
action count
action filter_type
action find
entity Q730906
relation P361
type Q58778
[ANSWERS] are approximately the same number of special fields a component of as MKSA system of units
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:P361 ?k . ?k rdf:type ontology:Q58778 . ?n rdf:type ontology:Q1047113 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:Q730906 property:P361 ?t . ?t rdf:type ontology:Q58778 } } . FILTER ( ?l = ?g ) }
commercial shipping Atomic units School system in Germany agribusiness United States customary units supply chain Planck units television Metre–tonne–second system of units Gaussian units MKSA system of units formal language Gravitational metric system heavy industry International System of Units intranet film industry textile industry energy industry national economy silviculture hierarchy of genres communication Technology grammar political system centimetre–gram–second system of units International System of Quantities valvetrain insurance industry wholesale trade spatial reference system ground segment English units biological system Apothecaries' system electrostatic units Burmese units of measurement electromagnetic unit system game industry retail music industry foot–pound–second system universe Imperial and US customary measurement systems Obsolete Russian units of measurement petroleum industry petrochemical industry logical system MKS system of units telecommunications network rail transport thermodynamic system mail aerospace industry chemical industry urban rail transit Real estate economics Deep Space Network ferrous metallurgy
Universe, Deep Space Network and ground segment are approximately the same number of special fields a component of as MKSA system of units
universe Deep Space Network ground segment
action approx
action find_reverse_tuple_counts
relation part of
type system
type special field
action count
action filter_type
action find
entity MKSA system of units
relation part of
type system
[{'concept': 'special field'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?l ) WHERE { ?n property:part_of ?k . ?k rdf:type ontology:system . ?n rdf:type ontology:special_field } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { resource:MKSA_system_of_units property:part_of ?t . ?t rdf:type ontology:system } } . FILTER ( ?l = ?g ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1779882 Q5546797
P27
Q15617994
USER
Which administrative territories are John Anthony Allan or Randi Stene a civilian of ?
OR((Q5546797,P27,c(Q15617994)), (Q1779882,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5546797
relation P27
action find
entity Q1779882
relation P27
type Q15617994
{'OR': [['Q5546797', 'P27', {'concept': 'Q15617994'}], ['Q1779882', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { ?q property:P27 ?h . VALUES ( ?q ) { ( resource:Q5546797 ) ( resource:Q1779882 ) } } }
Randi Stene John Anthony Allan
action filter_type
action union
action find
entity John Anthony Allan
relation country of citizenship
action find
entity Randi Stene
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Anthony Allan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Randi Stene', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?q property:country_of_citizenship ?h . VALUES ( ?q ) { ( resource:John_Anthony_Allan ) ( resource:Randi_Stene ) } } }
[]
designation for an administrative territorial entity
Q20 Q145
SYSTEM
Norway, United Kingdom
Q20 Q145
OR((Q5546797,P27,c(Q15617994)), (Q1779882,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5546797
relation P27
action find
entity Q1779882
relation P27
type Q15617994
[ANSWERS] are John Anthony Allan or Randi Stene a civilian of
{'OR': [['Q5546797', 'P27', {'concept': 'Q15617994'}], ['Q1779882', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . { ?q property:P27 ?h . VALUES ( ?q ) { ( resource:Q5546797 ) ( resource:Q1779882 ) } } }
Norway United Kingdom
Norway and United Kingdom are John Anthony Allan or Randi Stene a civilian of
Norway United Kingdom
action filter_type
action union
action find
entity John Anthony Allan
relation country of citizenship
action find
entity Randi Stene
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['John Anthony Allan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Randi Stene', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?q property:country_of_citizenship ?h . VALUES ( ?q ) { ( resource:John_Anthony_Allan ) ( resource:Randi_Stene ) } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q201658
USER
How many administrative territories are the origin of less number of collectables and film genres than that administrative territory ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?g property:P495 ?y . VALUES ( ?g ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?g property:country_of_origin ?y . VALUES ( ?g ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
designation for an administrative territorial entity collectable film genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?g property:P495 ?y . VALUES ( ?g ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Did you mean United Kingdom ?
United Kingdom
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?g property:country_of_origin ?y . VALUES ( ?g ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Norway. Could you tell me the answer for that?
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
Q20
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
153
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q45 Q43 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q31 Q924 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q201658),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q201658 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad Portugal Turkey Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Belgium Tanzania Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
153
[[{'concept': 'collectable'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:film_genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q222
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories than Albania ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?x ) WHERE { ?a property:P530 ?z . ?a rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?x > ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q222 property:P530 ?n } } }
Albania
action count
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 Albania
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 ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?x ) WHERE { ?a property:diplomatic_relation ?z . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?x > ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Albania property:diplomatic_relation ?n } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
21
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q222
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?x ) WHERE { ?a property:P530 ?z . ?a rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?x > ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q222 property:P530 ?n } } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
21
action count
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 Albania
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 ( COUNT ( ?a ) AS ?p ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?x ) WHERE { ?a property:diplomatic_relation ?z . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?x > ?t ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Albania property:diplomatic_relation ?n } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q912
P530
Q15617994 Q15617994
USER
And how about Mali?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q912
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P530 ?z . ?f rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q912 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?s ) }
Mali
action count
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 Mali
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 ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:diplomatic_relation ?z . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Mali property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
141
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 count
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q912
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:P530 ?z . ?f rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q912 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?s ) }
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
141
action count
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 Mali
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 ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?o ) WHERE { ?f property:diplomatic_relation ?z . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Mali property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P127
Q838948
USER
Which work of art is owned by United Kingdom ?
(c(Q838948),P127,Q145)
action filter_type
action find_reverse
entity Q145
relation P127
type Q838948
[{'concept': 'Q838948'}, 'P127', 'Q145']
SELECT DISTINCT ?q WHERE { ?q property:P127 resource:Q145 . ?q rdf:type ontology:Q838948 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?q WHERE { ?q property:owned_by resource:United_Kingdom . ?q rdf:type ontology:work_of_art }
[]
work of art
Q1439502
SYSTEM
Napoleon as Mars the Peacemaker
Q1439502
(c(Q838948),P127,Q145)
action filter_type
action find_reverse
entity Q145
relation P127
type Q838948
As [ANSWER] is owned by United Kingdom
[{'concept': 'Q838948'}, 'P127', 'Q145']
SELECT DISTINCT ?q WHERE { ?q property:P127 resource:Q145 . ?q rdf:type ontology:Q838948 }
Napoleon as Mars the Peacemaker
As Napoleon as Mars the Peacemaker is owned by United Kingdom
Napoleon as Mars the Peacemaker
action filter_type
action find_reverse
entity United Kingdom
relation owned by
type work of art
[{'concept': 'work of art'}, 'owned by', 'United Kingdom']
SELECT DISTINCT ?q WHERE { ?q property:owned_by resource:United_Kingdom . ?q rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1439502
P135
Q2198855
USER
Which cultural movement was that work of art linked with ?
(Q1439502,P135,c(Q2198855))
action filter_type
action find
entity Q1439502
relation P135
type Q2198855
['Q1439502', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2198855 . resource:Q1439502 property:P135 ?q }
Napoleon as Mars the Peacemaker
action filter_type
action find
entity Napoleon as Mars the Peacemaker
relation movement
type cultural movement
['Napoleon as Mars the Peacemaker', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:cultural_movement . resource:Napoleon_as_Mars_the_Peacemaker property:movement ?q }
[]
cultural movement
Q14378
SYSTEM
neoclassicism
Q14378
(Q1439502,P135,c(Q2198855))
action filter_type
action find
entity Q1439502
relation P135
type Q2198855
That work of art was linked to [ANSWER]
['Q1439502', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2198855 . resource:Q1439502 property:P135 ?q }
neoclassicism
That work of art was linked to neoclassicism
neoclassicism
action filter_type
action find
entity Napoleon as Mars the Peacemaker
relation movement
type cultural movement
['Napoleon as Mars the Peacemaker', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:cultural_movement . resource:Napoleon_as_Mars_the_Peacemaker property:movement ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P176
Q2235308
USER
What was produced by United Kingdom ?
(c(Q2235308),P176,Q145)
action filter_type
action find_reverse
entity Q145
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P176 resource:Q145 . ?w rdf:type ontology:Q2235308 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:manufacturer resource:United_Kingdom . ?w rdf:type ontology:ship_type }
[]
ship type
Q3492344
SYSTEM
Japanese warship Hōshō
Q3492344
(c(Q2235308),P176,Q145)
action filter_type
action find_reverse
entity Q145
relation P176
type Q2235308
The [ANSWER] was produced by United Kingdom
[{'concept': 'Q2235308'}, 'P176', 'Q145']
SELECT DISTINCT ?w WHERE { ?w property:P176 resource:Q145 . ?w rdf:type ontology:Q2235308 }
Japanese warship Hōshō
The Japanese warship Hōshō was produced by United Kingdom
Japanese warship Hōshō
action filter_type
action find_reverse
entity United Kingdom
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'United Kingdom']
SELECT DISTINCT ?w WHERE { ?w property:manufacturer resource:United_Kingdom . ?w rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Who are the heads of state of United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q145 property:P35 ?s }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?s }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
The heads of state of United Kingdom are Queen [ANSWERS]
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q145 property:P35 ?s }
Edward VIII George V George VI Elizabeth II
The heads of state of United Kingdom are Queen Elizabeth II, George VI and George V
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?s }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q33946
Q502895
USER
And also tell me about Czechoslovakia?
(Q33946,P35,c(Q502895))
action filter_type
action find
entity Q33946
relation P35
type Q502895
['Q33946', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q33946 property:P35 ?n . ?n rdf:type ontology:Q502895 }
Czechoslovakia
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
['Czechoslovakia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Czechoslovakia property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
common name
Q36233 Q78492 Q152274
SYSTEM
Václav Havel, Tomáš Garrigue Masaryk, Edvard Beneš
Q296054 Q156494 Q310000 Q157651 Q78492 Q371854 Q152274 Q36233 Q156502
(Q33946,P35,c(Q502895))
action filter_type
action find
entity Q33946
relation P35
type Q502895
[ANSWERS]
['Q33946', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q33946 property:P35 ?n . ?n rdf:type ontology:Q502895 }
Klement Gottwald Antonín Novotný Ludvík Svoboda Gustáv Husák Tomáš Garrigue Masaryk Antonín Zápotocký Edvard Beneš Václav Havel Emil Hácha
Václav Havel Tomáš Garrigue Masaryk Edvard Beneš
action filter_type
action find
entity Czechoslovakia
relation head of state
type common name
['Czechoslovakia', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Czechoslovakia property:head_of_state ?n . ?n rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q129569
P35
Q7275
USER
Are Poher headed by those people ?
(Q129569,P35,Q36233) (Q129569,P35,Q78492) (Q129569,P35,Q152274)
action is_in
entity prev_answer
action find
entity Q129569
relation P35
['Q129569', 'P35', 'Q36233'] ['Q129569', 'P35', 'Q78492'] ['Q129569', 'P35', 'Q152274']
ASK WHERE { resource:Q129569 property:P35 ?o . VALUES ( ?o ) { ( resource:Q296054 ) ( resource:Q156494 ) ( resource:Q310000 ) } }
Poher
action is_in
entity prev_answer
action find
entity Poher
relation head of state
['Poher', 'head of state', 'Václav Havel'] ['Poher', 'head of state', 'Tomáš Garrigue Masaryk'] ['Poher', 'head of state', 'Edvard Beneš']
ASK WHERE { resource:Poher property:head_of_state ?o . VALUES ( ?o ) { ( resource:Klement_Gottwald ) ( resource:Antonín_Novotný ) ( resource:Ludvík_Svoboda ) } }
[]
state
SYSTEM
NO
(Q129569,P35,Q36233) (Q129569,P35,Q78492) (Q129569,P35,Q152274)
action is_in
entity prev_answer
action find
entity Q129569
relation P35
[ANSWER]
['Q129569', 'P35', 'Q36233'] ['Q129569', 'P35', 'Q78492'] ['Q129569', 'P35', 'Q152274']
ASK WHERE { resource:Q129569 property:P35 ?o . VALUES ( ?o ) { ( resource:Q296054 ) ( resource:Q156494 ) ( resource:Q310000 ) } }
No
action is_in
entity prev_answer
action find
entity Poher
relation head of state
['Poher', 'head of state', 'Václav Havel'] ['Poher', 'head of state', 'Tomáš Garrigue Masaryk'] ['Poher', 'head of state', 'Edvard Beneš']
ASK WHERE { resource:Poher property:head_of_state ?o . VALUES ( ?o ) { ( resource:Klement_Gottwald ) ( resource:Antonín_Novotný ) ( resource:Ludvík_Svoboda ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q36233 Q130786
P1412
Q34770
USER
How many languages can Václav Havel or Viktor Suvorov read ?
(Q36233,P1412,c(Q34770)) (Q130786,P1412,c(Q34770))
action count
action union
action filter_type
action find
entity Q36233
relation P1412
type Q34770
action filter_type
action find
entity Q130786
relation P1412
type Q34770
['Q36233', 'P1412', {'concept': 'Q34770'}] ['Q130786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { resource:Q130786 property:P1412 ?h . ?h rdf:type ontology:Q34770 } UNION { resource:Q36233 property:P1412 ?h . ?h rdf:type ontology:Q34770 } }
Václav Havel Viktor Suvorov
action count
action union
action filter_type
action find
entity Václav Havel
relation languages spoken, written or signed
type language
action filter_type
action find
entity Viktor Suvorov
relation languages spoken, written or signed
type language
['Václav Havel', 'languages spoken, written or signed', {'concept': 'language'}] ['Viktor Suvorov', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { resource:Viktor_Suvorov property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language } UNION { resource:Václav_Havel property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language } }
[]
language
SYSTEM
2
Q1860 Q9056
(Q36233,P1412,c(Q34770)) (Q130786,P1412,c(Q34770))
action count
action union
action filter_type
action find
entity Q36233
relation P1412
type Q34770
action filter_type
action find
entity Q130786
relation P1412
type Q34770
[ANSWER]
['Q36233', 'P1412', {'concept': 'Q34770'}] ['Q130786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { resource:Q130786 property:P1412 ?h . ?h rdf:type ontology:Q34770 } UNION { resource:Q36233 property:P1412 ?h . ?h rdf:type ontology:Q34770 } }
English Czech
2
action count
action union
action filter_type
action find
entity Václav Havel
relation languages spoken, written or signed
type language
action filter_type
action find
entity Viktor Suvorov
relation languages spoken, written or signed
type language
['Václav Havel', 'languages spoken, written or signed', {'concept': 'language'}] ['Viktor Suvorov', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { resource:Viktor_Suvorov property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language } UNION { resource:Václav_Havel property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language } }
[]