Simple Question (Direct)
Simple Question
Q1366862
P1344
Q15275719
USER
Which recurring event did Wim van Est compete in ?
(Q1366862,P1344,c(Q15275719))
action filter_type
action find
entity Q1366862
relation P1344
type Q15275719
['Q1366862', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?t WHERE { resource:Q1366862 property:P1344 ?t . ?t rdf:type ontology:Q15275719 }
Wim van Est
action filter_type
action find
entity Wim van Est
relation participant of
type recurring event
['Wim van Est', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?t WHERE { resource:Wim_van_Est property:participant_of ?t . ?t rdf:type ontology:recurring_event }
[]
recurring event
Q33881
SYSTEM
Tour de France
Q33881
(Q1366862,P1344,c(Q15275719))
action filter_type
action find
entity Q1366862
relation P1344
type Q15275719
Wim van Est competed in [ANSWER]
['Q1366862', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ?t WHERE { resource:Q1366862 property:P1344 ?t . ?t rdf:type ontology:Q15275719 }
Tour de France
Wim van Est competed in Tour de France
Tour de France
action filter_type
action find
entity Wim van Est
relation participant of
type recurring event
['Wim van Est', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ?t WHERE { resource:Wim_van_Est property:participant_of ?t . ?t rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33881
P138
Q15617994
USER
What is that recurring event named after ?
(Q33881,P138,c(Q15617994))
action filter_type
action find
entity Q33881
relation P138
type Q15617994
['Q33881', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q33881 property:P138 ?j . ?j rdf:type ontology:Q15617994 }
Tour de France
action filter_type
action find
entity Tour de France
relation named after
type designation for an administrative territorial entity
['Tour de France', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Tour_de_France property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q33881,P138,c(Q15617994))
action filter_type
action find
entity Q33881
relation P138
type Q15617994
That recurring event named after is of [ANSWER]
['Q33881', 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q33881 property:P138 ?j . ?j rdf:type ontology:Q15617994 }
France
That recurring event named after is of France
France
action filter_type
action find
entity Tour de France
relation named after
type designation for an administrative territorial entity
['Tour de France', 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Tour_de_France property:named_after ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with atleast 59 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 59
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?m property:P530 ?h } GROUP BY ?m } . FILTER ( ?k >= 59 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 59
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation ?h } GROUP BY ?m } . FILTER ( ?k >= 59 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q230
SYSTEM
Italy, Georgia
Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 59
[ANSWERS] are known to have diplomatic connections with atleast 59 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 . ?m property:P530 ?h } GROUP BY ?m } . FILTER ( ?k >= 59 ) }
Italy Georgia
Italy and Georgia are known to have diplomatic connections with atleast 59 administrative territories
Italy Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 59
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation ?h } GROUP BY ?m } . FILTER ( ?k >= 59 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with atmost 49 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 49
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?v <= 49 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 49
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?v <= 49 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q230 Q159
SYSTEM
United States of America, Georgia, Russia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 49
[ANSWERS] have a diplomatic relationship with atmost 49 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?v <= 49 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius 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 Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
United States of America, Georgia and Russia have a diplomatic relationship with atmost 49 administrative territories
United States of America Georgia Russia
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 49
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?v <= 49 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q52286
P530
Q15617994
USER
Do Ferrandina have ambassadorial relations with those ones ?
(Q52286,P530,Q30) (Q52286,P530,Q230) (Q52286,P530,Q159)
action is_in
entity prev_answer
action find
entity Q52286
relation P530
['Q52286', 'P530', 'Q30'] ['Q52286', 'P530', 'Q230'] ['Q52286', 'P530', 'Q159']
ASK WHERE { VALUES ( ?w ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q52286 property:P530 ?w }
Ferrandina
action is_in
entity prev_answer
action find
entity Ferrandina
relation diplomatic relation
['Ferrandina', 'diplomatic relation', 'United States of America'] ['Ferrandina', 'diplomatic relation', 'Georgia'] ['Ferrandina', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?w ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Ferrandina property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q52286,P530,Q30) (Q52286,P530,Q230) (Q52286,P530,Q159)
action is_in
entity prev_answer
action find
entity Q52286
relation P530
[ANSWER]
['Q52286', 'P530', 'Q30'] ['Q52286', 'P530', 'Q230'] ['Q52286', 'P530', 'Q159']
ASK WHERE { VALUES ( ?w ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q52286 property:P530 ?w }
No
action is_in
entity prev_answer
action find
entity Ferrandina
relation diplomatic relation
['Ferrandina', 'diplomatic relation', 'United States of America'] ['Ferrandina', 'diplomatic relation', 'Georgia'] ['Ferrandina', 'diplomatic relation', 'Russia']
ASK WHERE { VALUES ( ?w ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . resource:Ferrandina property:diplomatic_relation ?w }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q6396508 Q230
P530 P27
Q1048835
USER
Which political territories have diplomatic relations with Georgia and are not the countries of citizenship of Kevin Hofbauer ?
AND((Q230,P530,c(Q1048835)), NOT((Q6396508,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q230
relation P530
action find
entity Q6396508
relation P27
type Q1048835
{'AND': [['Q230', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q6396508', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?v WHERE { resource:Q230 property:P530 ?v . FILTER NOT EXISTS { resource:Q6396508 property:P27 ?v } . ?v rdf:type ontology:Q1048835 }
Kevin Hofbauer Georgia
action filter_type
action difference
action find
entity Georgia
relation diplomatic relation
action find
entity Kevin Hofbauer
relation country of citizenship
type political territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Kevin Hofbauer', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { resource:Georgia property:diplomatic_relation ?v . FILTER NOT EXISTS { resource:Kevin_Hofbauer property:country_of_citizenship ?v } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1000 Q40 Q781 Q183 Q778 Q769 Q35 Q16 Q664 Q766
SYSTEM
Gabon, Austria, Antigua and Barbuda, Germany, The Bahamas, Grenada, Denmark, Canada, New Zealand, Jamaica
Q1000 Q40 Q781 Q183 Q778 Q769 Q35 Q16 Q664 Q766
AND((Q230,P530,c(Q1048835)), NOT((Q6396508,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q230
relation P530
action find
entity Q6396508
relation P27
type Q1048835
[ANSWERS] have diplomatic relations with Georgia and are not the countries of citizenship of Kevin Hofbauer
{'AND': [['Q230', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q6396508', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?v WHERE { resource:Q230 property:P530 ?v . FILTER NOT EXISTS { resource:Q6396508 property:P27 ?v } . ?v rdf:type ontology:Q1048835 }
Gabon Austria Antigua and Barbuda Germany The Bahamas Grenada Denmark Canada New Zealand Jamaica
Gabon, Austria, Antigua and Barbuda, Germany, The Bahamas, Grenada, Denmark, Canada, New Zealand and Jamaica have diplomatic relations with Georgia and are not the countries of citizenship of Kevin Hofbauer
Gabon Austria Antigua and Barbuda Germany The Bahamas Grenada Denmark Canada New Zealand Jamaica
action filter_type
action difference
action find
entity Georgia
relation diplomatic relation
action find
entity Kevin Hofbauer
relation country of citizenship
type political territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Kevin Hofbauer', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { resource:Georgia property:diplomatic_relation ?v . FILTER NOT EXISTS { resource:Kevin_Hofbauer property:country_of_citizenship ?v } . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6396508
P21
Q290
USER
Which sex does that person belong to ?
(Q1000,P21,c(Q290)) (Q40,P21,c(Q290)) (Q781,P21,c(Q290)) (Q183,P21,c(Q290)) (Q778,P21,c(Q290)) (Q769,P21,c(Q290)) (Q35,P21,c(Q290)) (Q16,P21,c(Q290)) (Q664,P21,c(Q290)) (Q766,P21,c(Q290))
action filter_type
action find
entity Q6396508
relation P21
type Q290
['Q1000', 'P21', {'concept': 'Q290'}] ['Q40', 'P21', {'concept': 'Q290'}] ['Q781', 'P21', {'concept': 'Q290'}] ['Q183', 'P21', {'concept': 'Q290'}] ['Q778', 'P21', {'concept': 'Q290'}] ['Q769', 'P21', {'concept': 'Q290'}] ['Q35', 'P21', {'concept': 'Q290'}] ['Q16', 'P21', {'concept': 'Q290'}] ['Q664', 'P21', {'concept': 'Q290'}] ['Q766', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q6396508 property:P21 ?g }
Kevin Hofbauer
action filter_type
action find
entity Kevin Hofbauer
relation gender
type sex
['Gabon', 'gender', {'concept': 'sex'}] ['Austria', 'gender', {'concept': 'sex'}] ['Antigua and Barbuda', 'gender', {'concept': 'sex'}] ['Germany', 'gender', {'concept': 'sex'}] ['The Bahamas', 'gender', {'concept': 'sex'}] ['Grenada', 'gender', {'concept': 'sex'}] ['Denmark', 'gender', {'concept': 'sex'}] ['Canada', 'gender', {'concept': 'sex'}] ['New Zealand', 'gender', {'concept': 'sex'}] ['Jamaica', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Kevin_Hofbauer property:gender ?g }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1000,P21,c(Q290)) (Q40,P21,c(Q290)) (Q781,P21,c(Q290)) (Q183,P21,c(Q290)) (Q778,P21,c(Q290)) (Q769,P21,c(Q290)) (Q35,P21,c(Q290)) (Q16,P21,c(Q290)) (Q664,P21,c(Q290)) (Q766,P21,c(Q290))
action filter_type
action find
entity Q6396508
relation P21
type Q290
That person belongs to [ANSWER]
['Q1000', 'P21', {'concept': 'Q290'}] ['Q40', 'P21', {'concept': 'Q290'}] ['Q781', 'P21', {'concept': 'Q290'}] ['Q183', 'P21', {'concept': 'Q290'}] ['Q778', 'P21', {'concept': 'Q290'}] ['Q769', 'P21', {'concept': 'Q290'}] ['Q35', 'P21', {'concept': 'Q290'}] ['Q16', 'P21', {'concept': 'Q290'}] ['Q664', 'P21', {'concept': 'Q290'}] ['Q766', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . resource:Q6396508 property:P21 ?g }
male
That person belongs to male
male
action filter_type
action find
entity Kevin Hofbauer
relation gender
type sex
['Gabon', 'gender', {'concept': 'sex'}] ['Austria', 'gender', {'concept': 'sex'}] ['Antigua and Barbuda', 'gender', {'concept': 'sex'}] ['Germany', 'gender', {'concept': 'sex'}] ['The Bahamas', 'gender', {'concept': 'sex'}] ['Grenada', 'gender', {'concept': 'sex'}] ['Denmark', 'gender', {'concept': 'sex'}] ['Canada', 'gender', {'concept': 'sex'}] ['New Zealand', 'gender', {'concept': 'sex'}] ['Jamaica', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . resource:Kevin_Hofbauer property:gender ?g }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q5228663 Q664
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with New Zealand and are not the countries of citizenship of Dave Devall ?
AND((Q664,P530,c(Q1048835)), NOT((Q5228663,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q664
relation P530
action find
entity Q5228663
relation P27
type Q1048835
{'AND': [['Q664', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q5228663', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?v . FILTER NOT EXISTS { resource:Q5228663 property:P27 ?v } }
Dave Devall New Zealand
action filter_type
action difference
action find
entity New Zealand
relation diplomatic relation
action find
entity Dave Devall
relation country of citizenship
type political territorial entity
{'AND': [['New Zealand', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Dave Devall', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?v . FILTER NOT EXISTS { resource:Dave_Devall property:country_of_citizenship ?v } }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
AND((Q664,P530,c(Q1048835)), NOT((Q5228663,P27,c(Q1048835))))
action filter_type
action difference
action find
entity Q664
relation P530
action find
entity Q5228663
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with New Zealand and are not the countries of citizenship of Dave Devall
{'AND': [['Q664', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q5228663', 'P27', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q664 property:P530 ?v . FILTER NOT EXISTS { resource:Q5228663 property:P27 ?v } }
Australia Germany
Australia and Germany have diplomatic relationships with New Zealand and are not the countries of citizenship of Dave Devall
Australia Germany
action filter_type
action difference
action find
entity New Zealand
relation diplomatic relation
action find
entity Dave Devall
relation country of citizenship
type political territorial entity
{'AND': [['New Zealand', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['Dave Devall', 'country of citizenship', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:New_Zealand property:diplomatic_relation ?v . FILTER NOT EXISTS { resource:Dave_Devall property:country_of_citizenship ?v } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q15324 Q1267889 Q1048835
USER
Which political territories are located in min number of bodies of water and waterways ?
(c(Q1048835),P706,c(Q15324)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?z WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?t WHERE { { ?t property:P706 ?p . ?t rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15324 } UNION { ?t property:P706 ?p . ?t rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1267889 } } GROUP BY ?t } . FILTER ( ?v = ?g ) }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?z WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?t WHERE { { ?t property:located_on_terrain_feature ?p . ?t rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:body_of_water } UNION { ?t property:located_on_terrain_feature ?p . ?t rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:waterway } } GROUP BY ?t } . FILTER ( ?v = ?g ) }
[]
body of water waterway political territorial entity
Q691 Q769 Q766
SYSTEM
Papua New Guinea, Grenada, Jamaica
Q927498 Q6661154 Q1747689 Q983465 Q943922 Q983461 Q753702 Q950889 Q385923 Q49567 Q52626 Q13353 Q6139 Q847324 Q847321 Q850989 Q983467 Q743716 Q734805 Q555140 Q983463 Q13737 Q493017 Q950940 Q669078 Q851224 Q950951 Q843868 Q945653 Q37362 Q715970 Q595424 Q168856 Q5785 Q7198529 Q832991 Q13751 Q13752 Q975679 Q601112 Q984496 Q743741 Q988714 Q25228 Q596885 Q941533 Q783498 Q692920 Q850939 Q988702 Q2451327 Q925773 Q851011 Q1823 Q13844 Q611123 Q233337 Q987394 Q691 Q899884 Q837121 Q950901 Q837125 Q847317 Q983633 Q491786 Q983631 Q3724 Q983635 Q8583 Q652988 Q832967 Q185409 Q769 Q170213 Q766 Q984485 Q983625 Q983628 Q8593 Q656449 Q988688 Q18221 Q778 Q213361 Q984493 Q984491 Q984499 Q3396832 Q9337 Q5700 Q988696 Q943948 Q697126 Q25305 Q616408 Q610838 Q920971
(c(Q1048835),P706,c(Q15324)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P706
type Q1048835
type Q15324
action find_tuple_counts
relation P706
type Q1048835
type Q1267889
[ANSWERS] are located in min number of bodies of water and waterways
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?z WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?t WHERE { { ?t property:P706 ?p . ?t rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15324 } UNION { ?t property:P706 ?p . ?t rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1267889 } } GROUP BY ?t } . FILTER ( ?v = ?g ) }
Llucmajor Llanddeusant, Carmarthenshire Ancient Rome Santa Eulària des Riu Sineu Ferreries East New Britain Consell Alcúdia Manacor Formentera Montserrat Havelland Alaior Esporles Campanet Montuïri Campos Sant Antoni de Portmany Capileira Sant Llorenç des Cardassar Basilan Andratx Marratxí Maria de la Salut Costitx Escorca Wrexham County Borough Es Mercadal Akrotiri and Dhekelia Artà Muro, Majorca Chernivtsi Oblast Cayman Islands Pistyll Sóller Biliran Bohol Vilafranca de Bonany Pollença Selva Felanitx Lloret de Vistalegre Anguilla Blaenau Gwent County Borough Es Castell Ses Salines Sant Joan Alaró Estellencs Sé Porreres Algaida Aceh Leyte Petra, Majorca Deià Sencelles Papua New Guinea Ciutadella de Menorca Binissalem Fornalutx Bunyola Lloseta Santanyí Calvià Santa Eugènia West Java Province Sant Josep de sa Talaia Vulkaneifel Búger Valldemossa Llubí Grenada Zakarpattia Oblast Jamaica Es Migjorn Gran Puigpunyent Sant Joan de Labritja Mayen-Koblenz Ariany, Majorca Inca Turks and Caicos Islands The Bahamas Pembrokeshire Sa Pobla Santa Margalida Sant Lluís Tudweiliog Flemish Region Lapland Mancor de la Vall Santa Maria del Camí Bridgend County Borough British Virgin Islands Banyalbufar Son Servera Capdepera
Papua New Guinea, Grenada and Jamaica are located in min number of bodies of water and waterways
Papua New Guinea Grenada Jamaica
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type waterway
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) ?z WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:body_of_water ) ( ontology:waterway ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?t WHERE { { ?t property:located_on_terrain_feature ?p . ?t rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:body_of_water } UNION { ?t property:located_on_terrain_feature ?p . ?t rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:waterway } } GROUP BY ?t } . FILTER ( ?v = ?g ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q142 Q38
P27
Q502895
USER
Which people are a native of Italy and France ?
AND((c(Q502895),P27,Q38), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q38'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?y WHERE { ?y property:P27 resource:Q38 . ?y property:P27 resource:Q142 . ?y rdf:type ontology:Q502895 }
France Italy
action filter_type
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Italy'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?y WHERE { ?y property:country_of_citizenship resource:Italy . ?y property:country_of_citizenship resource:France . ?y rdf:type ontology:common_name }
[]
common name
Q232470 Q5458090 Q3839997 Q3849375 Q17496981 Q3956029 Q16931030 Q447882 Q946985 Q288157
SYSTEM
Some of them are Valeria Bruni Tedeschi, Flavio Badoglio, 3rd Duke of Addis Abeba, Luigi Perin, Marius Gallottini, Gabriel Milési, Sergio Bernardini, Pierre Brunet, Gina Cigna, Gonzalo, Duke of Aquitaine, Alessandra Martines
Q282826 Q27279338 Q242535 Q3518339 Q16166620 Q670600 Q554949 Q3946523 Q3080958 Q325750 Q3897731 Q3485281 Q361549 Q16931030 Q3645913 Q1605801 Q1749946 Q2870111 Q2835395 Q3777991 Q2266030 Q3839289 Q2825728 Q3067922 Q2008943 Q3386931 Q10263113 Q3703487 Q1648249 Q313717 Q16534029 Q461111 Q3266383 Q2941755 Q503355 Q240266 Q3843042 Q143945 Q2832795 Q3616889 Q3623625 Q1145703 Q3556020 Q5458090 Q3105264 Q437406 Q232470 Q659357 Q3606647 Q16273590 Q23055058 Q3847141 Q3839997 Q2997856 Q1069399 Q451754 Q603075 Q1685445 Q3609150 Q3186531 Q320313 Q1187472 Q3107886 Q3770549 Q1366568 Q1685957 Q271885 Q106057 Q17496981 Q3839987 Q2407259 Q27554550 Q3426303 Q3107301 Q20857649 Q155293 Q16525032 Q447882 Q23058111 Q3849375 Q587389 Q543779 Q19520036 Q3622676 Q475100 Q3796496 Q17266105 Q22683727 Q2834220 Q539171 Q3271553 Q337260 Q3807694 Q3229764 Q3107932 Q3164704 Q3956029 Q1383758 Q266229 Q3805996 Q748005 Q3356439 Q288157 Q3119446 Q27574631 Q634278 Q2939996 Q19518869 Q267617 Q946985 Q535699 Q206244 Q5086384 Q3108174 Q3904178 Q3837586 Q3901498
AND((c(Q502895),P27,Q38), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q38
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWERS] are a native of Italy and France
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q38'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?y WHERE { ?y property:P27 resource:Q38 . ?y property:P27 resource:Q142 . ?y rdf:type ontology:Q502895 }
Roland Bugatti Marc Ange Caterina Valente Teresa Cremisi Marco Angeli Vincenzo Rennella Lanza del Vasto Sammy Barbot Francesco Fausto Nitti Frank Horvat Patrick Djivas Siro Bianchi David Bortolussi Pierre Brunet Bruno Rossetti Henri Curiel Victor Del Litto Attilio Redolfi Alfred Pina Grégory Leperdi Jean-Sélim Kanaan Luigi Aurigemma Affaire Alfredo Stranieri Federico Nitti Romeo Bosetti Pierre Santini César Garin Davide Augusto Albarin Joseph-Marie Lo Duca Ivanoe Bonomi Bruto Seghettini Serge Reggiani Luigi Barral Caterina Magni Igor Markevitch Henri Lentulo Maffeo Bellicini Carla Bruni Alessandro Mercuri Angelo Bertino Poli Arnoldo Granella Natasha Hovey Veronica Antico Flavio Badoglio, 3rd Duke of Addis Abeba Gianni Marcarini Catherine Spaak Valeria Bruni Tedeschi Joseph Di Mauro Agnese Claisse Walter Becchia| Luigi-Alberto Sanchi Maria Assunta Alexandroff Bassi Luigi Perin Corrado Guarducci Cino Del Duca Dominique Boschero Alfonso, Duke of Anjou and Cádiz Jean Corti Aldo Canazza José Quaglio Berto Lardera Denis Krief Giulia Salvatori Giuseppe Figoni Léon Croizat Jean de Sperati Marisa Pavan Yves Montand Gabriel Milési Luigi Pellegrin Amédée Gordini Sante Vallar René Gruau Giovanni Paolo Paladino Teresina Negri Fermo Camellini Aleardo Nani Gina Cigna Claudio Lemmi Marius Gallottini Lasse Braun Marcello Pagliero Alfred Macorig Aristide Merolli Edoardo Mortara Ilo De Franceschi Michaël Bodegas Mario Morisi Alexandre del Valle Dalida Léonardo Delfino Lino Ventura Jean Mary Carletto Leonello Brandolini d'Adda Giulio Cesare Silvagni Jean-Charles Vegliante Sergio Bernardini Marcel Bich Edwige Fenech Jacqueline Schweitzer Lorraine De Selle Orlando Alessandra Martines Guido Magnone Bettina Kee Gabriel Pontello Caroline Furioli Joseph Berrini Roberto Alagna Gonzalo, Duke of Aquitaine Alberto Tenenti Stéphane Grappelli Charlène Guignard Giuseppe de Martino Pietro Polo Perucchin Louis Bonnefon Craponne Philippe Daverio
Valeria Bruni Tedeschi, Flavio Badoglio, 3rd Duke of Addis Abeba, Luigi Perin, Marius Gallottini, Gabriel Milési, Sergio Bernardini, Pierre Brunet, Gina Cigna, Gonzalo, Duke of Aquitaine and Alessandra Martines are a native of Italy and France
Valeria Bruni Tedeschi Flavio Badoglio, 3rd Duke of Addis Abeba Luigi Perin Marius Gallottini Gabriel Milési Sergio Bernardini Pierre Brunet Gina Cigna Gonzalo, Duke of Aquitaine Alessandra Martines
action filter_type
action intersection
action find_reverse
entity Italy
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Italy'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?y WHERE { ?y property:country_of_citizenship resource:Italy . ?y property:country_of_citizenship resource:France . ?y rdf:type ontology:common_name }
[]