Simple Question (Direct)
Simple Question
Q5342588
P21
Q290
USER
What is the sex of Edward Didymus ?
(Q5342588,P21,c(Q290))
action filter_type
action find
entity Q5342588
relation P21
type Q290
['Q5342588', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q5342588 property:P21 ?l }
Edward Didymus
action filter_type
action find
entity Edward Didymus
relation gender
type sex
['Edward Didymus', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Edward_Didymus property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5342588,P21,c(Q290))
action filter_type
action find
entity Q5342588
relation P21
type Q290
The sex of Edward Didymus is the [ANSWER]
['Q5342588', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q5342588 property:P21 ?l }
male
The sex of Edward Didymus is the male
male
action filter_type
action find
entity Edward Didymus
relation gender
type sex
['Edward Didymus', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Edward_Didymus property:gender ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5342588
P19
Q56061
USER
Where was Edward Didymus born ?
(Q5342588,P19,c(Q56061))
action filter_type
action find
entity Q5342588
relation P19
type Q56061
['Q5342588', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5342588 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Edward Didymus
action filter_type
action find
entity Edward Didymus
relation place of birth
type administrative territorial entity
['Edward Didymus', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Edward_Didymus property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q72259
SYSTEM
Portsmouth
Q72259
(Q5342588,P19,c(Q56061))
action filter_type
action find
entity Q5342588
relation P19
type Q56061
Edward Didymus was born in [ANSWER]
['Q5342588', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5342588 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Portsmouth
Edward Didymus was born in Portsmouth
Portsmouth
action filter_type
action find
entity Edward Didymus
relation place of birth
type administrative territorial entity
['Edward Didymus', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Edward_Didymus property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5342588
P641
Q349
USER
Which sport did that person participate in ?
(Q72259,P641,c(Q349))
action filter_type
action find
entity Q5342588
relation P641
type Q349
['Q72259', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5342588 property:P641 ?q . ?q rdf:type ontology:Q349 }
Edward Didymus
action filter_type
action find
entity Edward Didymus
relation sport
type sport
['Portsmouth', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Edward_Didymus property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q72259,P641,c(Q349))
action filter_type
action find
entity Q5342588
relation P641
type Q349
That person participated in [ANSWER]
['Q72259', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q5342588 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Edward Didymus
relation sport
type sport
['Portsmouth', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Edward_Didymus property:sport ?q . ?q rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4783139 Q5342588
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Edward Didymus or do Arab American Book Award belong to ?
OR((Q5342588,P27,c(Q15617994)), (Q4783139,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5342588
relation P27
action find
entity Q4783139
relation P17
type Q15617994
{'OR': [['Q5342588', 'P27', {'concept': 'Q15617994'}], ['Q4783139', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5342588 property:P27 ?w } UNION { resource:Q4783139 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Arab American Book Award Edward Didymus
action filter_type
action union
action find
entity Edward Didymus
relation country of citizenship
action find
entity Arab American Book Award
relation country
type designation for an administrative territorial entity
{'OR': [['Edward Didymus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arab American Book Award', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Edward_Didymus property:country_of_citizenship ?w } UNION { resource:Arab_American_Book_Award property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q5342588,P27,c(Q15617994)), (Q4783139,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5342588
relation P27
action find
entity Q4783139
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Edward Didymus or do Arab American Book Award belong to
{'OR': [['Q5342588', 'P27', {'concept': 'Q15617994'}], ['Q4783139', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5342588 property:P27 ?w } UNION { resource:Q4783139 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
United States of America United Kingdom
United States of America and United Kingdom are the countries of citizenship of Edward Didymus or do Arab American Book Award belong to
United States of America United Kingdom
action filter_type
action union
action find
entity Edward Didymus
relation country of citizenship
action find
entity Arab American Book Award
relation country
type designation for an administrative territorial entity
{'OR': [['Edward Didymus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Arab American Book Award', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Edward_Didymus property:country_of_citizenship ?w } UNION { resource:Arab_American_Book_Award property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9009157 Q5342588
P27
Q15617994
USER
Which administrative territories are the native countriesof Edward Didymus or Inés Melchor ?
OR((Q5342588,P27,c(Q15617994)), (Q9009157,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5342588
relation P27
action find
entity Q9009157
relation P27
type Q15617994
{'OR': [['Q5342588', 'P27', {'concept': 'Q15617994'}], ['Q9009157', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Q5342588 ) ( resource:Q9009157 ) } . ?n property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Inés Melchor Edward Didymus
action filter_type
action union
action find
entity Edward Didymus
relation country of citizenship
action find
entity Inés Melchor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edward Didymus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Inés Melchor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Edward_Didymus ) ( resource:Inés_Melchor ) } . ?n property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419 Q145
SYSTEM
Peru, United Kingdom
Q419 Q145
OR((Q5342588,P27,c(Q15617994)), (Q9009157,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5342588
relation P27
action find
entity Q9009157
relation P27
type Q15617994
[ANSWERS] are the native countriesof Edward Didymus or Inés Melchor
{'OR': [['Q5342588', 'P27', {'concept': 'Q15617994'}], ['Q9009157', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Q5342588 ) ( resource:Q9009157 ) } . ?n property:P27 ?q } . ?q rdf:type ontology:Q15617994 }
Peru United Kingdom
Peru and United Kingdom are the native countriesof Edward Didymus or Inés Melchor
Peru United Kingdom
action filter_type
action union
action find
entity Edward Didymus
relation country of citizenship
action find
entity Inés Melchor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Edward Didymus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Inés Melchor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { VALUES ( ?n ) { ( resource:Edward_Didymus ) ( resource:Inés_Melchor ) } . ?n property:country_of_citizenship ?q } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q1048835
USER
How many administrative territories and political territories share border with that administrative territory ?
(c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q419) (c(Q1048835),P47,Q419) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145)
[{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q419'] [{'concept': 'Q1048835'}, 'P47', 'Q419'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q1758012 } UNION { ?y property:P47 resource:Q1758012 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'political territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Peru } UNION { ?y property:shares_border_with resource:Peru } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q419
SYSTEM
Did you mean Peru ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q1758012 } UNION { ?y property:P47 resource:Q1758012 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Peru ?
Peru
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Peru } UNION { ?y property:shares_border_with resource:Peru } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant United Kingdom. Could you tell me the answer for that?
(c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q419) (c(Q1048835),P47,Q419) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145)
Q145
[{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q419'] [{'concept': 'Q1048835'}, 'P47', 'Q419'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145']
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'political territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom']
[]
SYSTEM
3 administrative territories and 1 political territories
Q142 Q717 Q35 Q27
(c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q419) (c(Q1048835),P47,Q419) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q145)
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q419'] [{'concept': 'Q1048835'}, 'P47', 'Q419'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q145']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q1758012 } UNION { ?y property:P47 resource:Q1758012 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
France Venezuela Denmark Ireland
3 administrative territories and 1 political territories
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'political territorial entity'}, 'shares border with', 'Peru'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Peru } UNION { ?y property:shares_border_with resource:Peru } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q854
P1001
Q15617994 Q12737077 Q820655
USER
How many administrative territories come under the jurisdiction of lesser number of occupations or statutes than Sri Lanka ?
(c(Q12737077)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q854
relation P1001
type Q12737077
type Q820655
[[{'concept': 'Q12737077'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?u ) { ( ontology:Q12737077 ) ( ontology:Q820655 ) } . ?h rdf:type ?u } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:P1001 resource:Q854 . { VALUES ( ?r ) { ( ontology:Q12737077 ) ( ontology:Q820655 ) } . ?v rdf:type ?r } } } . FILTER ( ?t < ?p ) }
Sri Lanka
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Sri Lanka
relation applies to jurisdiction
type occupation
type statute
[[{'concept': 'occupation'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?u ) { ( ontology:occupation ) ( ontology:statute ) } . ?h rdf:type ?u } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:applies_to_jurisdiction resource:Sri_Lanka . { VALUES ( ?r ) { ( ontology:occupation ) ( ontology:statute ) } . ?v rdf:type ?r } } } . FILTER ( ?t < ?p ) }
[]
designation for an administrative territorial entity occupation statute
SYSTEM
122
Q702 Q804 Q705 Q707 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q22273061 Q2871 Q24764 Q2742 Q842 Q874 Q443815 Q50198 Q187035 Q22274206 Q1462 Q657 Q6465 Q792 Q4628 Q7688 Q3097 Q158893 Q2942 Q822 Q817 Q11340 Q11343 Q1142326 Q2899 Q2758 Q813 Q921 Q4712 Q155019 Q3389 Q986 Q734 Q163966 Q769680 Q3068 Q1013 Q11323 Q1093 Q238 Q119284 Q3403547 Q2667658 Q1025 Q1101 Q1029 Q786 Q32 Q228 Q3462133 Q224 Q223 Q229 Q347 Q1050 Q2838 Q1032 Q965 Q962 Q697 Q752 Q22274534 Q11337 Q11331 Q12642 Q154547 Q683 Q1216 Q12753 Q912 Q2805 Q917 Q2107 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q11301 Q2904 Q158095 Q1044 Q858 Q878 Q775 Q770 Q773 Q772 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q129003 Q800 Q1039 Q672 Q33788 Q929 Q1267638 Q329609 Q2938 Q2023 Q1231 Q1237
(c(Q12737077)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q854
relation P1001
type Q12737077
type Q820655
[ANSWER]
[[{'concept': 'Q12737077'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?u ) { ( ontology:Q12737077 ) ( ontology:Q820655 ) } . ?h rdf:type ?u } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:P1001 resource:Q854 . { VALUES ( ?r ) { ( ontology:Q12737077 ) ( ontology:Q820655 ) } . ?v rdf:type ?r } } } . FILTER ( ?t < ?p ) }
Federated States of Micronesia Panama Zeeland Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Duchy of Nemours Hagen municipality of the Philippines Münster Oman Turkmenistan Altomünster province of Thailand Principality of Albania Duchy of Mercoeur Sardinia Chad department of France El Salvador Faroe Islands raion Remscheid Friedrichshain-Kreuzberg Solingen Lebanon Kuwait Sprockhövel Wetter (Ruhr) Seine Mülheim an der Ruhr Mönchengladbach Kyrgyzstan Brunei Duchy of Burgundy Duchy of Lorraine Finistère Eritrea Guyana Mitte Bornholm Loire-Atlantique Lesotho Breckerfeld Limburg San Marino Marzahn-Hellersdorf principality of Phalsbourg and Lixheim Shushary, Saint Petersburg Mauritania North Brabant Mozambique Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Croatia Greenland Cyprus Liechtenstein Swaziland Oberhausen Niger Burkina Faso Benin Nauru Groningen Duchy of Elbeuf Herdecke Gevelsberg Morbihan duchy Samoa Piedmont Seine-et-Marne Mali Krefeld Bhutan Wuppertal Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Syria United Arab Emirates Gelderland Friesland Overijssel Drenthe Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Beloostrov Lichtenberg Leverkusen Nunavut Kosovo Region Trentino-South Tyrol
122
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Sri Lanka
relation applies to jurisdiction
type occupation
type statute
[[{'concept': 'occupation'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?u ) { ( ontology:occupation ) ( ontology:statute ) } . ?h rdf:type ?u } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v property:applies_to_jurisdiction resource:Sri_Lanka . { VALUES ( ?r ) { ( ontology:occupation ) ( ontology:statute ) } . ?v rdf:type ?r } } } . FILTER ( ?t < ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1979
P1001
Q15617994 Q12737077 Q820655
USER
And how about Prince Edward Island?
(c(Q12737077)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P1001
type Q12737077
type Q820655
[[{'concept': 'Q12737077'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?b WHERE { { ?o property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q12737077 } UNION { ?o property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q820655 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P1001 resource:Q1979 . { { ?s rdf:type ontology:Q12737077 } UNION { ?s rdf:type ontology:Q820655 } } } } . FILTER ( ?e < ?n ) }
Prince Edward Island
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation applies to jurisdiction
type occupation
type statute
[[{'concept': 'occupation'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?b WHERE { { ?o property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:occupation } UNION { ?o property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:statute } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:applies_to_jurisdiction resource:Prince_Edward_Island . { { ?s rdf:type ontology:occupation } UNION { ?s rdf:type ontology:statute } } } } . FILTER ( ?e < ?n ) }
[]
designation for an administrative territorial entity occupation statute
SYSTEM
162
Q701 Q702 Q804 Q705 Q707 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q414 Q22273061 Q2871 Q24764 Q2742 Q842 Q37 Q398 Q874 Q711 Q710 Q443815 Q50198 Q187035 Q22274206 Q1462 Q657 Q6465 Q792 Q4628 Q884 Q958 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q1965 Q817 Q11340 Q11343 Q1142326 Q2899 Q2758 Q1952 Q813 Q921 Q4712 Q155019 Q3389 Q986 Q423 Q854 Q734 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q1093 Q238 Q119284 Q3403547 Q1041 Q2667658 Q1025 Q783 Q2009 Q1101 Q1029 Q2003 Q786 Q32 Q228 Q3462133 Q227 Q224 Q223 Q221 Q229 Q347 Q1050 Q1989 Q2838 Q1036 Q1032 Q965 Q967 Q962 Q963 Q697 Q694 Q754 Q752 Q22274534 Q11337 Q11331 Q217 Q12642 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q2107 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q858 Q878 Q775 Q774 Q948 Q776 Q770 Q773 Q772 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q33788 Q929 Q1267638 Q329609 Q2938 Q2023 Q1231 Q1237
(c(Q12737077)|c(Q820655),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q12737077
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q820655
action count
action filter_multi_types
action find_reverse
entity Q1979
relation P1001
type Q12737077
type Q820655
[ANSWER]
[[{'concept': 'Q12737077'}, {'concept': 'Q820655'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?b WHERE { { ?o property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q12737077 } UNION { ?o property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q820655 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P1001 resource:Q1979 . { { ?s rdf:type ontology:Q12737077 } UNION { ?s rdf:type ontology:Q820655 } } } } . FILTER ( ?e < ?n ) }
North Holland Federated States of Micronesia Panama Zeeland Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Argentina Duchy of Nemours Hagen municipality of the Philippines Münster Oman Lithuania Bahrain Turkmenistan Mongolia Kiribati Altomünster province of Thailand Principality of Albania Duchy of Mercoeur Sardinia Chad department of France El Salvador Faroe Islands South Korea South Sudan raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba New Brunswick Kuwait Sprockhövel Wetter (Ruhr) Seine Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Brunei Duchy of Burgundy Duchy of Lorraine Finistère Eritrea North Korea Sri Lanka Guyana Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Limburg San Marino Marzahn-Hellersdorf principality of Phalsbourg and Lixheim Senegal Shushary, Saint Petersburg Mauritania Honduras Yukon North Brabant Mozambique Newfoundland and Labrador Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Croatia Greenland Republic of Macedonia Cyprus Liechtenstein Swaziland Saskatchewan Oberhausen Uganda Niger Burkina Faso Burundi Benin Botswana Nauru South Holland Trinidad and Tobago Groningen Duchy of Elbeuf Herdecke Gevelsberg Republic of Moldova Morbihan duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Wuppertal Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Syria United Arab Emirates Gelderland Guatemala Tunisia Utrecht Friesland Overijssel Drenthe Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Beloostrov Lichtenberg Leverkusen Nunavut Kosovo Region Trentino-South Tyrol
162
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type occupation
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type statute
action count
action filter_multi_types
action find_reverse
entity Prince Edward Island
relation applies to jurisdiction
type occupation
type statute
[[{'concept': 'occupation'}, {'concept': 'statute'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?b WHERE { { ?o property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:occupation } UNION { ?o property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:statute } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:applies_to_jurisdiction resource:Prince_Edward_Island . { { ?s rdf:type ontology:occupation } UNION { ?s rdf:type ontology:statute } } } } . FILTER ( ?e < ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1229930 Q419
P36
Q56061
USER
Which administrative territories are the capitals of Peru or Katakwi District ?
OR((Q419,P36,c(Q56061)), (Q1229930,P36,c(Q56061)))
action filter_type
action union
action find
entity Q419
relation P36
action find
entity Q1229930
relation P36
type Q56061
{'OR': [['Q419', 'P36', {'concept': 'Q56061'}], ['Q1229930', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1229930 property:P36 ?z } UNION { resource:Q419 property:P36 ?z } } . ?z rdf:type ontology:Q56061 }
Katakwi District Peru
action filter_type
action union
action find
entity Peru
relation capital
action find
entity Katakwi District
relation capital
type administrative territorial entity
{'OR': [['Peru', 'capital', {'concept': 'administrative territorial entity'}], ['Katakwi District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Katakwi_District property:capital ?z } UNION { resource:Peru property:capital ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2868 Q2544864
SYSTEM
Lima, Katakwi
Q2868 Q2544864
OR((Q419,P36,c(Q56061)), (Q1229930,P36,c(Q56061)))
action filter_type
action union
action find
entity Q419
relation P36
action find
entity Q1229930
relation P36
type Q56061
[ANSWERS] are the capitals of Peru or Katakwi District
{'OR': [['Q419', 'P36', {'concept': 'Q56061'}], ['Q1229930', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1229930 property:P36 ?z } UNION { resource:Q419 property:P36 ?z } } . ?z rdf:type ontology:Q56061 }
Lima Katakwi
Lima and Katakwi are the capitals of Peru or Katakwi District
Lima Katakwi
action filter_type
action union
action find
entity Peru
relation capital
action find
entity Katakwi District
relation capital
type administrative territorial entity
{'OR': [['Peru', 'capital', {'concept': 'administrative territorial entity'}], ['Katakwi District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Katakwi_District property:capital ?z } UNION { resource:Peru property:capital ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory situated in ?
(Q2544864,P17,c(Q15617994))
['Q2544864', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2544864 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Katakwi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Katakwi property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q2868
SYSTEM
Did you mean Lima ?
(Q2868,P17,c(Q15617994)) (Q2544864,P17,c(Q15617994))
[ANSWER]
['Q2868', 'P17', {'concept': 'Q15617994'}] ['Q2544864', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2544864 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Lima ?
Lima
['Lima', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Katakwi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Katakwi property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Katakwi. Could you tell me the answer for that?
(Q2544864,P17,c(Q15617994))
Q2544864
['Q2544864', 'P17', {'concept': 'Q15617994'}]
['Katakwi', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q1036
(Q2544864,P17,c(Q15617994))
[ANSWER]
['Q2544864', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2544864 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Uganda
1
['Katakwi', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Katakwi property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P921
Q201658
USER
Which film genre was mainly based on United States of America ?
(c(Q201658),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q201658
[{'concept': 'Q201658'}, 'P921', 'Q30']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q201658 . ?y property:P921 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation main subject
type film genre
[{'concept': 'film genre'}, 'main subject', 'United States of America']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:film_genre . ?y property:main_subject resource:United_States_of_America }
[]
film genre
Q7754490
SYSTEM
The Numbers Start with the River
Q7754490
(c(Q201658),P921,Q30)
action filter_type
action find_reverse
entity Q30
relation P921
type Q201658
The Numbers start with the River was mainly based on United States of America
[{'concept': 'Q201658'}, 'P921', 'Q30']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q201658 . ?y property:P921 resource:Q30 }
The Numbers Start with the River
The Numbers start with the River was mainly based on United States of America
The Numbers Start with the River
action filter_type
action find_reverse
entity United States of America
relation main subject
type film genre
[{'concept': 'film genre'}, 'main subject', 'United States of America']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:film_genre . ?y property:main_subject resource:United_States_of_America }
[]