Simple Question (Direct)
Simple Question
Q1663245
P512
Q3412758
USER
What is the name of the degree held by Ingolf Ericsson ?
(Q1663245,P512,c(Q3412758))
action filter_type
action find
entity Q1663245
relation P512
type Q3412758
['Q1663245', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?i WHERE { resource:Q1663245 property:P512 ?i . ?i rdf:type ontology:Q3412758 }
Ingolf Ericsson
action filter_type
action find
entity Ingolf Ericsson
relation academic degree
type qualification
['Ingolf Ericsson', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?i WHERE { resource:Ingolf_Ericsson property:academic_degree ?i . ?i rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1663245,P512,c(Q3412758))
action filter_type
action find
entity Q1663245
relation P512
type Q3412758
The name of the degree held by Ingolf Ericsson is a [ANSWER]
['Q1663245', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?i WHERE { resource:Q1663245 property:P512 ?i . ?i rdf:type ontology:Q3412758 }
doctoral degree
The name of the degree held by Ingolf Ericsson is a doctoral degree
doctoral degree
action filter_type
action find
entity Ingolf Ericsson
relation academic degree
type qualification
['Ingolf Ericsson', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?i WHERE { resource:Ingolf_Ericsson property:academic_degree ?i . ?i rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1663245
P937
Q515
USER
Which is the work location of that person ?
(Q849697,P937,c(Q515))
action filter_type
action find
entity Q1663245
relation P937
type Q515
['Q849697', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q1663245 property:P937 ?k . ?k rdf:type ontology:Q515 }
Ingolf Ericsson
action filter_type
action find
entity Ingolf Ericsson
relation work location
type city
['doctoral degree', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Ingolf_Ericsson property:work_location ?k . ?k rdf:type ontology:city }
[]
city
Q3936
SYSTEM
Bamberg
Q3936
(Q849697,P937,c(Q515))
action filter_type
action find
entity Q1663245
relation P937
type Q515
The work location of that person is in [ANSWER]
['Q849697', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q1663245 property:P937 ?k . ?k rdf:type ontology:Q515 }
Bamberg
The work location of that person is in Bamberg
Bamberg
action filter_type
action find
entity Ingolf Ericsson
relation work location
type city
['doctoral degree', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Ingolf_Ericsson property:work_location ?k . ?k rdf:type ontology:city }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q151148
P1376
Q7275 Q515
USER
Which states have greater number of cities as their capital than Chola dynasty ?
(c(Q515),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q151148
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?f rdf:type ontology:Q515 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:Q7275 . resource:Q151148 property:P1376 ?b } } . FILTER ( ?d > ?c ) }
Chola dynasty
action greater
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Chola dynasty
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:capital_of ?o . ?o rdf:type ontology:state . ?f rdf:type ontology:city } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:state . resource:Chola_dynasty property:capital_of ?b } } . FILTER ( ?d > ?c ) }
[]
state city
Q133356 Q213586 Q15864
SYSTEM
Ukrainian Soviet Socialist Republic, Gondor, United Kingdom of the Netherlands
Q178665 Q18285930 Q855044 Q210198 Q133356 Q215530 Q912043 Q203493 Q1574107 Q15864 Q698089 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q1154540 Q550374 Q19831559 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q13426199 Q3041595 Q484104 Q648297 Q149805
(c(Q515),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q151148
relation P1376
type Q7275
[ANSWERS] have greater number of cities as their capital than Chola dynasty
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:P1376 ?o . ?o rdf:type ontology:Q7275 . ?f rdf:type ontology:Q515 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:Q7275 . resource:Q151148 property:P1376 ?b } } . FILTER ( ?d > ?c ) }
Mitanni German Empire of 1848/1849 Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Romania Han Zhao United Kingdom of the Netherlands Grand Duchy of Würzburg Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia Later Jin Dynasty South African Republic Oldenburg Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Republic of China Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
Ukrainian Soviet Socialist Republic, Gondor and United Kingdom of the Netherlands have greater number of cities as their capital than Chola dynasty
Ukrainian Soviet Socialist Republic Gondor United Kingdom of the Netherlands
action greater
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Chola dynasty
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?f ) AS ?d ) WHERE { ?f property:capital_of ?o . ?o rdf:type ontology:state . ?f rdf:type ontology:city } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b rdf:type ontology:state . resource:Chola_dynasty property:capital_of ?b } } . FILTER ( ?d > ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q764697
P1376
Q7275 Q515
USER
And what about Taifa of Orihuela?
(c(Q515),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q764697
relation P1376
type Q7275
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P1376 ?p . ?p rdf:type ontology:Q7275 . ?c rdf:type ontology:Q515 } GROUP BY ?p } . FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Q764697 property:P1376 ?m . ?m rdf:type ontology:Q7275 } } }
Taifa of Orihuela
action greater
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Taifa of Orihuela
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:capital_of ?p . ?p rdf:type ontology:state . ?c rdf:type ontology:city } GROUP BY ?p } . FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Taifa_of_Orihuela property:capital_of ?m . ?m rdf:type ontology:state } } }
[]
state city
Q133356 Q213586 Q15864
SYSTEM
Ukrainian Soviet Socialist Republic, Gondor, United Kingdom of the Netherlands
Q178665 Q18285930 Q855044 Q210198 Q133356 Q215530 Q912043 Q203493 Q1574107 Q15864 Q698089 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q1154540 Q550374 Q19831559 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q13426199 Q3041595 Q484104 Q648297 Q149805
(c(Q515),P1376,c(Q7275))
action greater
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_type
action find
entity Q764697
relation P1376
type Q7275
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:P1376 ?p . ?p rdf:type ontology:Q7275 . ?c rdf:type ontology:Q515 } GROUP BY ?p } . FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Q764697 property:P1376 ?m . ?m rdf:type ontology:Q7275 } } }
Mitanni German Empire of 1848/1849 Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Romania Han Zhao United Kingdom of the Netherlands Grand Duchy of Würzburg Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia Later Jin Dynasty South African Republic Oldenburg Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Republic of China Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
Ukrainian Soviet Socialist Republic Gondor United Kingdom of the Netherlands
action greater
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_type
action find
entity Taifa of Orihuela
relation capital of
type state
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?x ) WHERE { ?c property:capital_of ?p . ?p rdf:type ontology:state . ?c rdf:type ontology:city } GROUP BY ?p } . FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { resource:Taifa_of_Orihuela property:capital_of ?m . ?m rdf:type ontology:state } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3190033 Q1663245
P27
Q15617994
USER
Which administrative territories do Ingolf Ericsson or Junie Astor belong to ?
OR((Q1663245,P27,c(Q15617994)), (Q3190033,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1663245
relation P27
action find
entity Q3190033
relation P27
type Q15617994
{'OR': [['Q1663245', 'P27', {'concept': 'Q15617994'}], ['Q3190033', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Q1663245 ) ( resource:Q3190033 ) } . ?r property:P27 ?u } . ?u rdf:type ontology:Q15617994 }
Junie Astor Ingolf Ericsson
action filter_type
action union
action find
entity Ingolf Ericsson
relation country of citizenship
action find
entity Junie Astor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ingolf Ericsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Junie Astor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Ingolf_Ericsson ) ( resource:Junie_Astor ) } . ?r property:country_of_citizenship ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q34
SYSTEM
France, Sweden
Q142 Q34
OR((Q1663245,P27,c(Q15617994)), (Q3190033,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1663245
relation P27
action find
entity Q3190033
relation P27
type Q15617994
Ingolf Ericsson or Junie Astor belong to Sweden [ANSWERS]
{'OR': [['Q1663245', 'P27', {'concept': 'Q15617994'}], ['Q3190033', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Q1663245 ) ( resource:Q3190033 ) } . ?r property:P27 ?u } . ?u rdf:type ontology:Q15617994 }
France Sweden
Ingolf Ericsson or Junie Astor belong to Sweden France and Sweden
France Sweden
action filter_type
action union
action find
entity Ingolf Ericsson
relation country of citizenship
action find
entity Junie Astor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ingolf Ericsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Junie Astor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?r ) { ( resource:Ingolf_Ericsson ) ( resource:Junie_Astor ) } . ?r property:country_of_citizenship ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q33788
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with greater number of administrative territories than New Caledonia ?
(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 Q33788
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?j ) WHERE { ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?c property:P530 ?l } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q33788 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?a ) }
New Caledonia
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 New Caledonia
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?j ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?l } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:New_Caledonia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?a ) }
[]
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 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 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 Q33788
relation P530
type Q15617994
[ANSWERS] have tactful political relations with greater number of administrative territories than New Caledonia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?j ) WHERE { ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 . ?c property:P530 ?l } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q33788 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?a ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have tactful political relations with greater number of administrative territories than New Caledonia
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 New Caledonia
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 ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?l ) AS ?j ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?l } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:New_Caledonia property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q695
P530
Q15617994 Q15617994
USER
And what about Palau?
(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 Q695
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:P530 ?d . ?l rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q695 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?w ) }
Palau
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 Palau
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:diplomatic_relation ?d . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Palau property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?w ) }
[]
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 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 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 Q695
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:P530 ?d . ?l rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q695 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?w ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand 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 Palau
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:diplomatic_relation ?d . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Palau property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?w ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q264638 Q213586
P19 P36
Q515
USER
Which cities are known as the capital of Gondor or are the birthplace of Tan Xue ?
OR((Q213586,P36,c(Q515)), (Q264638,P19,c(Q515)))
action filter_type
action union
action find
entity Q213586
relation P36
action find
entity Q264638
relation P19
type Q515
{'OR': [['Q213586', 'P36', {'concept': 'Q515'}], ['Q264638', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q213586 property:P36 ?p } UNION { resource:Q264638 property:P19 ?p } } . ?p rdf:type ontology:Q515 }
Tan Xue Gondor
action filter_type
action union
action find
entity Gondor
relation capital
action find
entity Tan Xue
relation place of birth
type city
{'OR': [['Gondor', 'capital', {'concept': 'city'}], ['Tan Xue', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Gondor property:capital ?p } UNION { resource:Tan_Xue property:place_of_birth ?p } } . ?p rdf:type ontology:city }
[]
city
Q308657 Q11736
SYSTEM
Minas Tirith, Tianjin
Q308657 Q11736
OR((Q213586,P36,c(Q515)), (Q264638,P19,c(Q515)))
action filter_type
action union
action find
entity Q213586
relation P36
action find
entity Q264638
relation P19
type Q515
[ANSWERS] are known as the capital of Gondor or are the birthplace of Tan Xue
{'OR': [['Q213586', 'P36', {'concept': 'Q515'}], ['Q264638', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q213586 property:P36 ?p } UNION { resource:Q264638 property:P19 ?p } } . ?p rdf:type ontology:Q515 }
Minas Tirith Tianjin
Minas Tirith and Tianjin are known as the capital of Gondor or are the birthplace of Tan Xue
Minas Tirith Tianjin
action filter_type
action union
action find
entity Gondor
relation capital
action find
entity Tan Xue
relation place of birth
type city
{'OR': [['Gondor', 'capital', {'concept': 'city'}], ['Tan Xue', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Gondor property:capital ?p } UNION { resource:Tan_Xue property:place_of_birth ?p } } . ?p rdf:type ontology:city }
[]
Clarification
Simple Question|Single Entity|Indirect
Q11736
P138
Q820655
USER
Which statute has that city as its toponym ?
(c(Q820655),P138,Q11736)
action filter_type
action find_reverse
entity Q11736
relation P138
type Q820655
[{'concept': 'Q820655'}, 'P138', 'Q11736']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q11736 . ?f rdf:type ontology:Q820655 }
Tianjin
action filter_type
action find_reverse
entity Tianjin
relation named after
type statute
[{'concept': 'statute'}, 'named after', 'Tianjin']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Tianjin . ?f rdf:type ontology:statute }
[]
statute
Clarification for simple ques.
Q308657
SYSTEM
Did you mean Minas Tirith ?
Q308657 Q11736
(c(Q820655),P138,Q308657) (c(Q820655),P138,Q11736)
[ANSWER]
[{'concept': 'Q820655'}, 'P138', 'Q308657'] [{'concept': 'Q820655'}, 'P138', 'Q11736']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q11736 . ?f rdf:type ontology:Q820655 }
Minas Tirith Tianjin
Did you mean Minas Tirith ?
Minas Tirith
[{'concept': 'statute'}, 'named after', 'Minas Tirith'] [{'concept': 'statute'}, 'named after', 'Tianjin']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Tianjin . ?f rdf:type ontology:statute }
[]
Simple Question (Coreferenced)
USER
No, I meant Tianjin. Could you tell me the answer for that?
(c(Q820655),P138,Q11736)
Q11736
[{'concept': 'Q820655'}, 'P138', 'Q11736']
[{'concept': 'statute'}, 'named after', 'Tianjin']
[]
Q705189
SYSTEM
Convention of Tientsin
Q705189
(c(Q820655),P138,Q11736)
action filter_type
action find_reverse
entity Q11736
relation P138
type Q820655
The [ANSWER] has that city as its toponym
[{'concept': 'Q820655'}, 'P138', 'Q11736']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q11736 . ?f rdf:type ontology:Q820655 }
Convention of Tientsin
The Convention of Tientsin has that city as its toponym
Convention of Tientsin
action filter_type
action find_reverse
entity Tianjin
relation named after
type statute
[{'concept': 'statute'}, 'named after', 'Tianjin']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Tianjin . ?f rdf:type ontology:statute }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34
P495
Q5962346 Q12796
USER
How many classification schemes and guns originate at Sweden ?
(c(Q5962346),P495,Q34) (c(Q12796),P495,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P495
type Q5962346
action filter_type
action find_reverse
entity Q34
relation P495
type Q12796
[{'concept': 'Q5962346'}, 'P495', 'Q34'] [{'concept': 'Q12796'}, 'P495', 'Q34']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:P495 resource:Q34 . ?s rdf:type ontology:Q12796 } UNION { ?s rdf:type ontology:Q5962346 . ?s property:P495 resource:Q34 } }
Sweden
action count
action union
action filter_type
action find_reverse
entity Sweden
relation country of origin
type classification scheme
action filter_type
action find_reverse
entity Sweden
relation country of origin
type gun
[{'concept': 'classification scheme'}, 'country of origin', 'Sweden'] [{'concept': 'gun'}, 'country of origin', 'Sweden']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:country_of_origin resource:Sweden . ?s rdf:type ontology:gun } UNION { ?s rdf:type ontology:classification_scheme . ?s property:country_of_origin resource:Sweden } }
[]
classification scheme gun
SYSTEM
12 classification schemes and 4 guns
Q2707876 Q13360812 Q2455100 Q2455127 Q1541289 Q17478690 Q6865371 Q10669459 Q4367179 Q10599228 Q1766723 Q2117340 Q10434936 Q1365812 Q1265013 Q1141901
(c(Q5962346),P495,Q34) (c(Q12796),P495,Q34)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P495
type Q5962346
action filter_type
action find_reverse
entity Q34
relation P495
type Q12796
[ANSWER]
[{'concept': 'Q5962346'}, 'P495', 'Q34'] [{'concept': 'Q12796'}, 'P495', 'Q34']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:P495 resource:Q34 . ?s rdf:type ontology:Q12796 } UNION { ?s rdf:type ontology:Q5962346 . ?s property:P495 resource:Q34 } }
Sjöormen-class submarine Delfinen II class submarine Draken-class submarine Näcken-class submarine Västergötland-class submarine Draken II-class submarine Miniman Sjölejonet-class submarine Hajen-class submarine Neptun class submarine Pvpj 1110 Södermanland-class submarine Braxen-class submarine Carl Gustav TEC-9 Gotland-class submarine
12 classification schemes and 4 guns
action count
action union
action filter_type
action find_reverse
entity Sweden
relation country of origin
type classification scheme
action filter_type
action find_reverse
entity Sweden
relation country of origin
type gun
[{'concept': 'classification scheme'}, 'country of origin', 'Sweden'] [{'concept': 'gun'}, 'country of origin', 'Sweden']
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { ?s property:country_of_origin resource:Sweden . ?s rdf:type ontology:gun } UNION { ?s rdf:type ontology:classification_scheme . ?s property:country_of_origin resource:Sweden } }
[]