Simple Question (Direct)
Simple Question
Q10308168
P641
Q349
USER
What did Jorge Luís Rocha de Paula participate in ?
(Q10308168,P641,c(Q349))
action filter_type
action find
entity Q10308168
relation P641
type Q349
['Q10308168', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q10308168 property:P641 ?s . ?s rdf:type ontology:Q349 }
Jorge Luís Rocha de Paula
action filter_type
action find
entity Jorge Luís Rocha de Paula
relation sport
type sport
['Jorge Luís Rocha de Paula', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Jorge_Luís_Rocha_de_Paula property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q10308168,P641,c(Q349))
action filter_type
action find
entity Q10308168
relation P641
type Q349
Jorge Luís Rocha de Paula participated in [ANSWER]
['Q10308168', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q10308168 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
Jorge Luís Rocha de Paula participated in association football
association football
action filter_type
action find
entity Jorge Luís Rocha de Paula
relation sport
type sport
['Jorge Luís Rocha de Paula', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Jorge_Luís_Rocha_de_Paula property:sport ?s . ?s rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10308168
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q10308168
relation P19
type Q56061
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q10308168 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Jorge Luís Rocha de Paula
action filter_type
action find
entity Jorge Luís Rocha de Paula
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Jorge_Luís_Rocha_de_Paula property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q2736,P19,c(Q56061))
action filter_type
action find
entity Q10308168
relation P19
type Q56061
That person was born in [ANSWER]
['Q2736', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q10308168 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Rio de Janeiro
That person was born in Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Jorge Luís Rocha de Paula
relation place of birth
type administrative territorial entity
['association football', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Jorge_Luís_Rocha_de_Paula property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q544894 Q10308168
P19 P504
Q56061
USER
Which administrative territories are the places of birth of Jorge Luís Rocha de Paula or serve the home port of Mary Rose ?
OR((Q10308168,P19,c(Q56061)), (Q544894,P504,c(Q56061)))
action filter_type
action union
action find
entity Q10308168
relation P19
action find
entity Q544894
relation P504
type Q56061
{'OR': [['Q10308168', 'P19', {'concept': 'Q56061'}], ['Q544894', 'P504', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q10308168 property:P19 ?z } UNION { resource:Q544894 property:P504 ?z } } . ?z rdf:type ontology:Q56061 }
Mary Rose Jorge Luís Rocha de Paula
action filter_type
action union
action find
entity Jorge Luís Rocha de Paula
relation place of birth
action find
entity Mary Rose
relation home port
type administrative territorial entity
{'OR': [['Jorge Luís Rocha de Paula', 'place of birth', {'concept': 'administrative territorial entity'}], ['Mary Rose', 'home port', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jorge_Luís_Rocha_de_Paula property:place_of_birth ?z } UNION { resource:Mary_Rose property:home_port ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q72259 Q8678
SYSTEM
Portsmouth, Rio de Janeiro
Q72259 Q8678
OR((Q10308168,P19,c(Q56061)), (Q544894,P504,c(Q56061)))
action filter_type
action union
action find
entity Q10308168
relation P19
action find
entity Q544894
relation P504
type Q56061
[ANSWERS] are the places of birth of Jorge Luís Rocha de Paula or serve the home port of Mary Rose
{'OR': [['Q10308168', 'P19', {'concept': 'Q56061'}], ['Q544894', 'P504', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q10308168 property:P19 ?z } UNION { resource:Q544894 property:P504 ?z } } . ?z rdf:type ontology:Q56061 }
Portsmouth Rio de Janeiro
Portsmouth and Rio de Janeiro are the places of birth of Jorge Luís Rocha de Paula or serve the home port of Mary Rose
Portsmouth Rio de Janeiro
action filter_type
action union
action find
entity Jorge Luís Rocha de Paula
relation place of birth
action find
entity Mary Rose
relation home port
type administrative territorial entity
{'OR': [['Jorge Luís Rocha de Paula', 'place of birth', {'concept': 'administrative territorial entity'}], ['Mary Rose', 'home port', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jorge_Luís_Rocha_de_Paula property:place_of_birth ?z } UNION { resource:Mary_Rose property:home_port ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12676682 Q8678
P17
Q15617994
USER
Which administrative territories are Rio de Janeiro or Varpininkai located in ?
OR((Q8678,P17,c(Q15617994)), (Q12676682,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q8678
relation P17
action find
entity Q12676682
relation P17
type Q15617994
{'OR': [['Q8678', 'P17', {'concept': 'Q15617994'}], ['Q12676682', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q8678 property:P17 ?g } UNION { resource:Q12676682 property:P17 ?g } } }
Varpininkai Rio de Janeiro
action filter_type
action union
action find
entity Rio de Janeiro
relation country
action find
entity Varpininkai
relation country
type designation for an administrative territorial entity
{'OR': [['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Varpininkai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Rio_de_Janeiro property:country ?g } UNION { resource:Varpininkai property:country ?g } } }
[]
designation for an administrative territorial entity
Q155 Q37
SYSTEM
Brazil, Lithuania
Q155 Q37
OR((Q8678,P17,c(Q15617994)), (Q12676682,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q8678
relation P17
action find
entity Q12676682
relation P17
type Q15617994
[ANSWERS] are Rio de Janeiro or Varpininkai located in
{'OR': [['Q8678', 'P17', {'concept': 'Q15617994'}], ['Q12676682', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q8678 property:P17 ?g } UNION { resource:Q12676682 property:P17 ?g } } }
Brazil Lithuania
Brazil and Lithuania are Rio de Janeiro or Varpininkai located in
Brazil Lithuania
action filter_type
action union
action find
entity Rio de Janeiro
relation country
action find
entity Varpininkai
relation country
type designation for an administrative territorial entity
{'OR': [['Rio de Janeiro', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Varpininkai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Rio_de_Janeiro property:country ?g } UNION { resource:Varpininkai property:country ?g } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q37
P530
Q1048835
USER
Who holds diplomatic relationship with Brazil and Lithuania ?
(Q155,P530,c(Q1048835)) (Q37,P530,c(Q1048835))
action union
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q37
relation P530
type Q1048835
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?w property:P530 ?i . VALUES ( ?w ) { ( resource:Q155 ) ( resource:Q37 ) } }
Brazil Lithuania
action union
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Lithuania
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?w property:diplomatic_relation ?i . VALUES ( ?w ) { ( resource:Brazil ) ( resource:Lithuania ) } }
[]
political territorial entity
Q183 Q408 Q408
SYSTEM
Australia for 2nd, 3rd, Germany for 1st
Q183 Q16 Q766 Q35 Q408 Q408
(Q155,P530,c(Q1048835)) (Q37,P530,c(Q1048835))
action union
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q37
relation P530
type Q1048835
[ANSWERS]
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q37', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?w property:P530 ?i . VALUES ( ?w ) { ( resource:Q155 ) ( resource:Q37 ) } }
Germany Canada Jamaica Denmark Australia Australia
Germany, Australia and Australia hold diplomatic relationship with Brazil and Lithuania
Germany Australia Australia
action union
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Lithuania
relation diplomatic relation
type political territorial entity
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Lithuania', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?w property:diplomatic_relation ?i . VALUES ( ?w ) { ( resource:Brazil ) ( resource:Lithuania ) } }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q155
Q15617994
USER
And which administrative territory?
(Q155,P530,c(Q15617994))
action filter_type
action find
entity Q155
relation P530
type Q15617994
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q155 property:P530 ?o . ?o rdf:type ontology:Q15617994 }
Brazil
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Brazil property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q159
SYSTEM
Italy, United States of America, Russia
Q96 Q419 Q801 Q800 Q843 Q1029 Q822 Q241 Q244 Q668 Q574 Q414 Q983 Q142 Q145 Q148 Q783 Q43 Q17 Q30 Q36 Q77 Q750 Q1016 Q739 Q423 Q717 Q79 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q212 Q213 Q45 Q159 Q734 Q41 Q790 Q38 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
(Q155,P530,c(Q15617994))
action filter_type
action find
entity Q155
relation P530
type Q15617994
[ANSWERS]
['Q155', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q155 property:P530 ?o . ?o rdf:type ontology:Q15617994 }
Mexico Peru Israel Costa Rica Pakistan Mozambique Lebanon Cuba Barbados India East Timor Argentina Equatorial Guinea France United Kingdom People's Republic of China Honduras Turkey Japan United States of America Poland Uruguay Bolivia Libya Colombia North Korea Venezuela Egypt Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Ukraine Czech Republic Portugal Russia Guyana Greece Haiti Italy Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
Italy United States of America Russia
action filter_type
action find
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Brazil property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q683
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with greater number of administrative territories than Samoa ?
(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 Q683
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q683 property:P530 ?s } } . FILTER ( ?o > ?g ) }
Samoa
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 Samoa
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 ( ?k ) AS ?o ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Samoa property:diplomatic_relation ?s } } . FILTER ( ?o > ?g ) }
[]
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 Q683
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with greater number of administrative territories than Samoa
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P530 ?i . ?k rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ontology:Q15617994 . resource:Q683 property:P530 ?s } } . FILTER ( ?o > ?g ) }
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 diplomatic relationships with greater number of administrative territories than Samoa
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 Samoa
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 ( ?k ) AS ?o ) WHERE { ?k property:diplomatic_relation ?i . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Samoa property:diplomatic_relation ?s } } . FILTER ( ?o > ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q17
P530
Q15617994 Q15617994
USER
And what about Japan?
(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 Q17
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?l } } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?w ) WHERE { ?p property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } }
Japan
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 Japan
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 ?p WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?l } } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?w ) WHERE { ?p property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q38
(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 Q17
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?l } } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?w ) WHERE { ?p property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?p } }
Israel Yemen France People's Republic of China Russia Brazil United States of America Italy
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 Japan
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 ?p WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?l } } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?o ) AS ?w ) WHERE { ?p property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q47624
P530
Q15617994
USER
Are Lanzo d'Intelvi known to have diplomatic connections with those ones ?
(Q47624,P530,Q38) (Q47624,P530,Q155) (Q47624,P530,Q30)
action is_in
entity prev_answer
action find
entity Q47624
relation P530
['Q47624', 'P530', 'Q38'] ['Q47624', 'P530', 'Q155'] ['Q47624', 'P530', 'Q30']
ASK WHERE { resource:Q47624 property:P530 ?p . VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
Lanzo d'Intelvi
action is_in
entity prev_answer
action find
entity Lanzo d'Intelvi
relation diplomatic relation
["Lanzo d'Intelvi", 'diplomatic relation', 'Italy'] ["Lanzo d'Intelvi", 'diplomatic relation', 'Brazil'] ["Lanzo d'Intelvi", 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Lanzo_d'Intelvi property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q47624,P530,Q38) (Q47624,P530,Q155) (Q47624,P530,Q30)
action is_in
entity prev_answer
action find
entity Q47624
relation P530
[ANSWER]
['Q47624', 'P530', 'Q38'] ['Q47624', 'P530', 'Q155'] ['Q47624', 'P530', 'Q30']
ASK WHERE { resource:Q47624 property:P530 ?p . VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
No
action is_in
entity prev_answer
action find
entity Lanzo d'Intelvi
relation diplomatic relation
["Lanzo d'Intelvi", 'diplomatic relation', 'Italy'] ["Lanzo d'Intelvi", 'diplomatic relation', 'Brazil'] ["Lanzo d'Intelvi", 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Lanzo_d'Intelvi property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q655601 Q30
P6 P40
Q502895
USER
Which people are the head of government of United States of America and are an offsprings of Samuel Ealy Johnson ?
AND((Q30,P6,c(Q502895)), (Q655601,P40,c(Q502895)))
action filter_type
action intersection
action find
entity Q30
relation P6
action find
entity Q655601
relation P40
type Q502895
{'AND': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q655601', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q655601 property:P40 ?w . resource:Q30 property:P6 ?w }
Samuel Ealy Johnson United States of America
action filter_type
action intersection
action find
entity United States of America
relation head of government
action find
entity Samuel Ealy Johnson
relation child
type common name
{'AND': [['United States of America', 'head of government', {'concept': 'common name'}], ['Samuel Ealy Johnson', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Samuel_Ealy_Johnson property:child ?w . resource:United_States_of_America property:head_of_government ?w }
[]
common name
Q9640
SYSTEM
Lyndon B. Johnson
Q9640
AND((Q30,P6,c(Q502895)), (Q655601,P40,c(Q502895)))
action filter_type
action intersection
action find
entity Q30
relation P6
action find
entity Q655601
relation P40
type Q502895
[ANSWER] is the head of government of United States of America and is an offsprings of Samuel Ealy Johnson
{'AND': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q655601', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q655601 property:P40 ?w . resource:Q30 property:P6 ?w }
Lyndon B. Johnson
Lyndon B. Johnson is the head of government of United States of America and is an offsprings of Samuel Ealy Johnson
Lyndon B. Johnson
action filter_type
action intersection
action find
entity United States of America
relation head of government
action find
entity Samuel Ealy Johnson
relation child
type common name
{'AND': [['United States of America', 'head of government', {'concept': 'common name'}], ['Samuel Ealy Johnson', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Samuel_Ealy_Johnson property:child ?w . resource:United_States_of_America property:head_of_government ?w }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q683
P1376
Q15617994 Q56061 Q515
USER
Which administrative territories have approximately the same number of administrative territories or cities as their capital as Samoa ?
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q683
relation P1376
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?u rdf:type ?c } GROUP BY ?q } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:P1376 resource:Q683 . { { ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 } } } } }
Samoa
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Samoa
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?u rdf:type ?c } GROUP BY ?q } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:capital_of resource:Samoa . { { ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city } } } } }
[]
designation for an administrative territorial entity administrative territorial entity city
Q230 Q159 Q55
SYSTEM
Georgia, Russia, Netherlands
Q804 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2998020 Q399 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q311803 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q760 Q14762300 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q639100 Q855327 Q328134 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q833 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q790 Q796 Q794 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q902 Q1036 Q1037 Q1032 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q31067 Q31065 Q1773268 Q30835 Q30831 Q574 Q1558632 Q191 Q79 Q77 Q878 Q46130 Q3044651 Q3044714 Q3044715 Q30682 Q30683 Q1951 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q1948 Q654849 Q2038939 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q222 Q221 Q47261 Q311668 Q229 Q228 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q3240 Q2662372 Q686924 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q4712 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q12717 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q30797 Q1904 Q347 Q3462133 Q30815 Q153402 Q3207 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q683
relation P1376
type Q56061
type Q515
[ANSWERS] have approximately the same number of administrative territories or cities as their capital as Samoa
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?u rdf:type ?c } GROUP BY ?q } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:P1376 resource:Q683 . { { ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 } } } } }
Panama Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Corse Armenia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Umgungundlovu District Municipality Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Saint Lucia single-tier municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Principality of Reuss-Gera Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District India Limburg Montserrat Frances Baard District Municipality Malaysia Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Haiti Iraq Iran Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Ems-Occidental Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Bangladesh Uganda Rwanda Niger Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Estonia Egypt Uruguay United Arab Emirates Rhône Louverture Ouest Ozama Matrouh Governorate Beni Suef Governorate Alberta Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Fiji Mongolia Kiribati Venezuela Nord Somme Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Manitoba Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Albania Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Andorra Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Bas-Rhin Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Luxor Governorate Ontario Liechtenstein Saxe-Coburg and Gotha South Sinai Governorate Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
Georgia, Russia and Netherlands have approximately the same number of administrative territories or cities as their capital as Samoa
Georgia Russia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Samoa
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?r ) WHERE { VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?u rdf:type ?c } GROUP BY ?q } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { ?d property:capital_of resource:Samoa . { { ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1033
P1376
Q15617994 Q56061 Q515
USER
And how about Nigeria?
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q1033
relation P1376
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?x WHERE { { ?u property:P1376 ?x . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P1376 ?x . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q515 } } GROUP BY ?x } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1376 resource:Q1033 . { VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?l rdf:type ?j } } } }
Nigeria
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Nigeria
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?x WHERE { { ?u property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:city } } GROUP BY ?x } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:capital_of resource:Nigeria . { VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?l rdf:type ?j } } } }
[]
designation for an administrative territorial entity administrative territorial entity city
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q155 Q1020 Q41 Q30 Q38 Q1033 Q199688 Q517333 Q924 Q17
(c(Q56061)|c(Q515),P1376,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q1033
relation P1376
type Q56061
type Q515
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?x WHERE { { ?u property:P1376 ?x . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P1376 ?x . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q515 } } GROUP BY ?x } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1376 resource:Q1033 . { VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?l rdf:type ?j } } } }
Yemen Brazil Malawi Greece United States of America Italy Nigeria Almohad Principality of Polotsk Tanzania Japan
Italy Brazil United States of America
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Nigeria
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?x WHERE { { ?u property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital_of ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:city } } GROUP BY ?x } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:capital_of resource:Nigeria . { VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?l rdf:type ?j } } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P138
Q811979
USER
Which architectural structures come from Italy, Brazil and United States of America ?
(c(Q811979),P138,Q38) (c(Q811979),P138,Q155) (c(Q811979),P138,Q30)
action union
action filter_type
action find_reverse
entity Q38
relation P138
type Q811979
action filter_type
action find_reverse
entity Q155
relation P138
type Q811979
action filter_type
action find_reverse
entity Q30
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q30']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q811979 . ?w property:P138 resource:Q38 } UNION { ?w property:P138 resource:Q155 . ?w rdf:type ontology:Q811979 } }
Italy Brazil United States of America
action union
action filter_type
action find_reverse
entity Italy
relation named after
type architectural structure
action filter_type
action find_reverse
entity Brazil
relation named after
type architectural structure
action filter_type
action find_reverse
entity United States of America
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'United States of America']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:architectural_structure . ?w property:named_after resource:Italy } UNION { ?w property:named_after resource:Brazil . ?w rdf:type ontology:architectural_structure } }
[]
architectural structure
Q1966521 Q3390556 Q2532668
SYSTEM
place d'Italie, place des États-Unis, Plaza Italia, Buenos Aires
Q2532668 Q6079604 Q1966521 Q2367311 Q3390556
(c(Q811979),P138,Q38) (c(Q811979),P138,Q155) (c(Q811979),P138,Q30)
action union
action filter_type
action find_reverse
entity Q38
relation P138
type Q811979
action filter_type
action find_reverse
entity Q155
relation P138
type Q811979
action filter_type
action find_reverse
entity Q30
relation P138
type Q811979
[ANSWERS]
[{'concept': 'Q811979'}, 'P138', 'Q38'] [{'concept': 'Q811979'}, 'P138', 'Q155'] [{'concept': 'Q811979'}, 'P138', 'Q30']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q811979 . ?w property:P138 resource:Q38 } UNION { ?w property:P138 resource:Q155 . ?w rdf:type ontology:Q811979 } }
Plaza Italia, Buenos Aires Plaza Italia place d'Italie place du Brésil place des États-Unis
Place d'Italie, place des États-Unis and Plaza Italia, Buenos Aires come from Italy, Brazil and United States of America
place d'Italie place des États-Unis Plaza Italia, Buenos Aires
action union
action filter_type
action find_reverse
entity Italy
relation named after
type architectural structure
action filter_type
action find_reverse
entity Brazil
relation named after
type architectural structure
action filter_type
action find_reverse
entity United States of America
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Italy'] [{'concept': 'architectural structure'}, 'named after', 'Brazil'] [{'concept': 'architectural structure'}, 'named after', 'United States of America']
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:architectural_structure . ?w property:named_after resource:Italy } UNION { ?w property:named_after resource:Brazil . ?w rdf:type ontology:architectural_structure } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1966521 Q3390556 Q2532668
P138
Q15617994
USER
Which administrative territories are namesakes of place d'Italie, place des États-Unis and Plaza Italia, Buenos Aires ?
(Q1966521,P138,c(Q15617994)) (Q3390556,P138,c(Q15617994)) (Q2532668,P138,c(Q15617994))
action union
action filter_type
action find
entity Q1966521
relation P138
type Q15617994
action filter_type
action find
entity Q3390556
relation P138
type Q15617994
action filter_type
action find
entity Q2532668
relation P138
type Q15617994
['Q1966521', 'P138', {'concept': 'Q15617994'}] ['Q3390556', 'P138', {'concept': 'Q15617994'}] ['Q2532668', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q15617994 . resource:Q3390556 property:P138 ?p } UNION { ?p rdf:type ontology:Q15617994 . resource:Q1966521 property:P138 ?p } }
place d'Italie place des États-Unis Plaza Italia, Buenos Aires
action union
action filter_type
action find
entity place d'Italie
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity place des États-Unis
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity Plaza Italia, Buenos Aires
relation named after
type designation for an administrative territorial entity
["place d'Italie", 'named after', {'concept': 'designation for an administrative territorial entity'}] ['place des États-Unis', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Plaza Italia, Buenos Aires', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:place_des_États-Unis property:named_after ?p } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:place_d'Italie property:named_after ?p } }
[]
designation for an administrative territorial entity
Q38 Q30 Q38
SYSTEM
Italy for 1st, 3rd, United States of America for 2nd
Q38 Q30 Q38
(Q1966521,P138,c(Q15617994)) (Q3390556,P138,c(Q15617994)) (Q2532668,P138,c(Q15617994))
action union
action filter_type
action find
entity Q1966521
relation P138
type Q15617994
action filter_type
action find
entity Q3390556
relation P138
type Q15617994
action filter_type
action find
entity Q2532668
relation P138
type Q15617994
[ANSWERS]
['Q1966521', 'P138', {'concept': 'Q15617994'}] ['Q3390556', 'P138', {'concept': 'Q15617994'}] ['Q2532668', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:Q15617994 . resource:Q3390556 property:P138 ?p } UNION { ?p rdf:type ontology:Q15617994 . resource:Q1966521 property:P138 ?p } }
Italy United States of America Italy
Italy, United States of America and Italy are namesakes of place d'Italie, place des États-Unis and Plaza Italia, Buenos Aires
Italy United States of America Italy
action union
action filter_type
action find
entity place d'Italie
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity place des États-Unis
relation named after
type designation for an administrative territorial entity
action filter_type
action find
entity Plaza Italia, Buenos Aires
relation named after
type designation for an administrative territorial entity
["place d'Italie", 'named after', {'concept': 'designation for an administrative territorial entity'}] ['place des États-Unis', 'named after', {'concept': 'designation for an administrative territorial entity'}] ['Plaza Italia, Buenos Aires', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:place_des_États-Unis property:named_after ?p } UNION { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:place_d'Italie property:named_after ?p } }
[]