Simple Question (Direct)
Simple Question
Q4664935
P641
Q349
USER
Which sport was Abdesslam Benabdellah a part of ?
(Q4664935,P641,c(Q349))
action filter_type
action find
entity Q4664935
relation P641
type Q349
['Q4664935', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q349 . resource:Q4664935 property:P641 ?x }
Abdesslam Benabdellah
action filter_type
action find
entity Abdesslam Benabdellah
relation sport
type sport
['Abdesslam Benabdellah', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sport . resource:Abdesslam_Benabdellah property:sport ?x }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4664935,P641,c(Q349))
action filter_type
action find
entity Q4664935
relation P641
type Q349
Which sport was Abdesslam Benabdellah a part of
['Q4664935', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q349 . resource:Q4664935 property:P641 ?x }
association football
Which sport was Abdesslam Benabdellah a part of
association football
action filter_type
action find
entity Abdesslam Benabdellah
relation sport
type sport
['Abdesslam Benabdellah', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:sport . resource:Abdesslam_Benabdellah property:sport ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4664935
P106
Q12737077
USER
What are the job of that person ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q4664935
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4664935 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Abdesslam Benabdellah
action filter_type
action find
entity Abdesslam Benabdellah
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Abdesslam_Benabdellah property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q4664935
relation P106
type Q12737077
The job of that person are also [ANSWERS]
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q4664935 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football manager association football player
The job of that person are also association football manager and association football player
association football manager association football player
action filter_type
action find
entity Abdesslam Benabdellah
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Abdesslam_Benabdellah property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q847
P366
Q349 Q811979 Q2235308
USER
How many sports represent the main use of approximately the same number of architectural structures and ship types as tennis ?
(c(Q811979)|c(Q2235308),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q847
relation P366
type Q811979
type Q2235308
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?e ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P366 resource:Q847 . { { ?b rdf:type ontology:Q811979 } UNION { ?b rdf:type ontology:Q2235308 } } } } . FILTER ( ?e = ?l ) }
tennis
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
action count
action filter_multi_types
action find_reverse
entity tennis
relation use
type architectural structure
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?e ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:use resource:tennis . { { ?b rdf:type ontology:architectural_structure } UNION { ?b rdf:type ontology:ship_type } } } } . FILTER ( ?e = ?l ) }
[]
sport architectural structure ship type
SYSTEM
16
Q7856 Q206989 Q14300548 Q183018 Q36908 Q500050 Q1875777 Q108429 Q177275 Q2736 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q811979)|c(Q2235308),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q847
relation P366
type Q811979
type Q2235308
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?e ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P366 resource:Q847 . { { ?b rdf:type ontology:Q811979 } UNION { ?b rdf:type ontology:Q2235308 } } } } . FILTER ( ?e = ?l ) }
rallying shooting sport skating bandy mountaineering cross country running air racing archery bobsleigh association football tennis ice hockey climbing harness racing American football badminton
16
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
action count
action filter_multi_types
action find_reverse
entity tennis
relation use
type architectural structure
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?e ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:use resource:tennis . { { ?b rdf:type ontology:architectural_structure } UNION { ?b rdf:type ontology:ship_type } } } } . FILTER ( ?e = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1875777
P366
Q349 Q811979 Q2235308
USER
And how about air racing?
(c(Q811979)|c(Q2235308),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q1875777
relation P366
type Q811979
type Q2235308
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:Q349 . ?y rdf:type ontology:Q2235308 . ?y property:P366 ?i } UNION { ?y property:P366 ?i . ?i rdf:type ontology:Q349 . ?y rdf:type ontology:Q811979 } } GROUP BY ?i } . FILTER ( ?l = ?v ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:P366 resource:Q1875777 . { VALUES ( ?u ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } . ?r rdf:type ?u } } } }
air racing
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
action count
action filter_multi_types
action find_reverse
entity air racing
relation use
type architectural structure
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:sport . ?y rdf:type ontology:ship_type . ?y property:use ?i } UNION { ?y property:use ?i . ?i rdf:type ontology:sport . ?y rdf:type ontology:architectural_structure } } GROUP BY ?i } . FILTER ( ?l = ?v ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:use resource:air_racing . { VALUES ( ?u ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } . ?r rdf:type ?u } } } }
[]
sport architectural structure ship type
SYSTEM
16
Q7856 Q206989 Q14300548 Q183018 Q36908 Q500050 Q1875777 Q108429 Q177275 Q2736 Q847 Q41466 Q22857 Q1194269 Q41323 Q7291
(c(Q811979)|c(Q2235308),P366,c(Q349))
action count
action approx
action union
action find_reverse_tuple_counts
relation P366
type Q349
type Q811979
action find_reverse_tuple_counts
relation P366
type Q349
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q1875777
relation P366
type Q811979
type Q2235308
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q2235308'}], 'P366', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:Q349 . ?y rdf:type ontology:Q2235308 . ?y property:P366 ?i } UNION { ?y property:P366 ?i . ?i rdf:type ontology:Q349 . ?y rdf:type ontology:Q811979 } } GROUP BY ?i } . FILTER ( ?l = ?v ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:P366 resource:Q1875777 . { VALUES ( ?u ) { ( ontology:Q2235308 ) ( ontology:Q811979 ) } . ?r rdf:type ?u } } } }
rallying shooting sport skating bandy mountaineering cross country running air racing archery bobsleigh association football tennis ice hockey climbing harness racing American football badminton
16
action count
action approx
action union
action find_reverse_tuple_counts
relation use
type sport
type architectural structure
action find_reverse_tuple_counts
relation use
type sport
type ship type
action count
action filter_multi_types
action find_reverse
entity air racing
relation use
type architectural structure
type ship type
[[{'concept': 'architectural structure'}, {'concept': 'ship type'}], 'use', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:sport . ?y rdf:type ontology:ship_type . ?y property:use ?i } UNION { ?y property:use ?i . ?i rdf:type ontology:sport . ?y rdf:type ontology:architectural_structure } } GROUP BY ?i } . FILTER ( ?l = ?v ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { ?r property:use resource:air_racing . { VALUES ( ?u ) { ( ontology:ship_type ) ( ontology:architectural_structure ) } . ?r rdf:type ?u } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4664935
P54
Q1194951
USER
Which national sports team is Abdesslam Benabdellah a member of ?
(Q4664935,P54,c(Q1194951))
action filter_type
action find
entity Q4664935
relation P54
type Q1194951
['Q4664935', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { resource:Q4664935 property:P54 ?h . ?h rdf:type ontology:Q1194951 }
Abdesslam Benabdellah
action filter_type
action find
entity Abdesslam Benabdellah
relation member of sports team
type national sports team
['Abdesslam Benabdellah', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { resource:Abdesslam_Benabdellah property:member_of_sports_team ?h . ?h rdf:type ontology:national_sports_team }
[]
national sports team
Q181903
SYSTEM
Algeria national football team
Q181903
(Q4664935,P54,c(Q1194951))
action filter_type
action find
entity Q4664935
relation P54
type Q1194951
[ANSWER] is Abdesslam Benabdellah a member of
['Q4664935', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?h WHERE { resource:Q4664935 property:P54 ?h . ?h rdf:type ontology:Q1194951 }
Algeria national football team
Algeria national football team is Abdesslam Benabdellah a member of
Algeria national football team
action filter_type
action find
entity Abdesslam Benabdellah
relation member of sports team
type national sports team
['Abdesslam Benabdellah', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?h WHERE { resource:Abdesslam_Benabdellah property:member_of_sports_team ?h . ?h rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4664935
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Abdesslam Benabdellah ?
(Q4664935,P27,c(Q15617994))
action filter_type
action find
entity Q4664935
relation P27
type Q15617994
['Q4664935', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q4664935 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Abdesslam Benabdellah
action filter_type
action find
entity Abdesslam Benabdellah
relation country of citizenship
type designation for an administrative territorial entity
['Abdesslam Benabdellah', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Abdesslam_Benabdellah property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q4664935,P27,c(Q15617994))
action filter_type
action find
entity Q4664935
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Abdesslam Benabdellah
['Q4664935', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q4664935 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Algeria
Algeria is the country of citizenship of Abdesslam Benabdellah
Algeria
action filter_type
action find
entity Abdesslam Benabdellah
relation country of citizenship
type designation for an administrative territorial entity
['Abdesslam Benabdellah', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Abdesslam_Benabdellah property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q262 Q1016 Q912
P47
Q15617994
USER
Does that administrative territory have an adjacent border with Libya and Mali ?
(Q262,P47,Q1016) (Q262,P47,Q912)
action is_in
entity Q262
action intersection
action find_reverse
entity Q1016
relation P47
action find_reverse
entity Q912
relation P47
['Q262', 'P47', 'Q1016'] ['Q262', 'P47', 'Q912']
ASK WHERE { resource:Q262 property:P47 resource:Q1016 . resource:Q262 property:P47 resource:Q912 }
Algeria Libya Mali
action is_in
entity Algeria
action intersection
action find_reverse
entity Libya
relation shares border with
action find_reverse
entity Mali
relation shares border with
['Algeria', 'shares border with', 'Libya'] ['Algeria', 'shares border with', 'Mali']
ASK WHERE { resource:Algeria property:shares_border_with resource:Libya . resource:Algeria property:shares_border_with resource:Mali }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q262,P47,Q1016) (Q262,P47,Q912)
action is_in
entity Q262
action intersection
action find_reverse
entity Q1016
relation P47
action find_reverse
entity Q912
relation P47
[ANSWER]
['Q262', 'P47', 'Q1016'] ['Q262', 'P47', 'Q912']
ASK WHERE { resource:Q262 property:P47 resource:Q1016 . resource:Q262 property:P47 resource:Q912 }
Yes
action is_in
entity Algeria
action intersection
action find_reverse
entity Libya
relation shares border with
action find_reverse
entity Mali
relation shares border with
['Algeria', 'shares border with', 'Libya'] ['Algeria', 'shares border with', 'Mali']
ASK WHERE { resource:Algeria property:shares_border_with resource:Libya . resource:Algeria property:shares_border_with resource:Mali }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q100040 Q262
P47
Q15617994
USER
Which administrative territories share the border with Algeria or Camposanto ?
OR((Q262,P47,c(Q15617994)), (Q100040,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q262
relation P47
action find
entity Q100040
relation P47
type Q15617994
{'OR': [['Q262', 'P47', {'concept': 'Q15617994'}], ['Q100040', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q262 property:P47 ?y } UNION { resource:Q100040 property:P47 ?y } } . ?y rdf:type ontology:Q15617994 }
Camposanto Algeria
action filter_type
action union
action find
entity Algeria
relation shares border with
action find
entity Camposanto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Algeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Camposanto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Algeria property:shares_border_with ?y } UNION { resource:Camposanto property:shares_border_with ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1025 Q1032 Q100038 Q100064 Q100089 Q94801 Q1028 Q912 Q100050 Q948
SYSTEM
Some of them are Mauritania, Niger, Bomporto, Medolla, Ravarino, Crevalcore, Morocco, Mali, Finale Emilia, Tunisia
Q1025 Q100089 Q948 Q1032 Q1016 Q100050 Q1028 Q94801 Q100094 Q912 Q100038 Q100064
OR((Q262,P47,c(Q15617994)), (Q100040,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q262
relation P47
action find
entity Q100040
relation P47
type Q15617994
[ANSWERS] share the border with Algeria or Camposanto
{'OR': [['Q262', 'P47', {'concept': 'Q15617994'}], ['Q100040', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q262 property:P47 ?y } UNION { resource:Q100040 property:P47 ?y } } . ?y rdf:type ontology:Q15617994 }
Mauritania Ravarino Tunisia Niger Libya Finale Emilia Morocco Crevalcore San Felice sul Panaro Mali Bomporto Medolla
Mauritania, Niger, Bomporto, Medolla, Ravarino, Crevalcore, Morocco, Mali, Finale Emilia and Tunisia share the border with Algeria or Camposanto
Mauritania Niger Bomporto Medolla Ravarino Crevalcore Morocco Mali Finale Emilia Tunisia
action filter_type
action union
action find
entity Algeria
relation shares border with
action find
entity Camposanto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Algeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Camposanto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Algeria property:shares_border_with ?y } UNION { resource:Camposanto property:shares_border_with ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with approximately the same number of administrative territories as Ireland ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?b ) WHERE { ?a property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q27 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?b = ?h ) }
Ireland
action count
action approx
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 Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?b ) WHERE { ?a property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Ireland property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b = ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
149
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?b ) WHERE { ?a property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Q27 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?b = ?h ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
149
action count
action approx
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 Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?b ) WHERE { ?a property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) WHERE { resource:Ireland property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b = ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q241
P530
Q15617994 Q15617994
USER
And also tell me about Cuba?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?q ) WHERE { ?v property:P530 ?f . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q241 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?x ) }
Cuba
action count
action approx
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 Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?q ) WHERE { ?v property:diplomatic_relation ?f . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Cuba property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?x ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 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 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?q ) WHERE { ?v property:P530 ?f . ?v rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Q241 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?x ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco 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 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 Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
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 Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?q ) WHERE { ?v property:diplomatic_relation ?f . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { resource:Cuba property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1028
P6
Q502895
USER
Which person is Morocco the head of goverment of ?
(Q1028,P6,c(Q502895))
action filter_type
action find
entity Q1028
relation P6
type Q502895
['Q1028', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1028 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Morocco
action filter_type
action find
entity Morocco
relation head of government
type common name
['Morocco', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Morocco property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]
common name
Q307921
SYSTEM
Abdelilah Benkirane
Q307921
(Q1028,P6,c(Q502895))
action filter_type
action find
entity Q1028
relation P6
type Q502895
[ANSWER] is Morocco the head of goverment of
['Q1028', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q1028 property:P6 ?c . ?c rdf:type ontology:Q502895 }
Abdelilah Benkirane
Abdelilah Benkirane is Morocco the head of goverment of
Abdelilah Benkirane
action filter_type
action find
entity Morocco
relation head of government
type common name
['Morocco', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Morocco property:head_of_government ?c . ?c rdf:type ontology:common_name }
[]