Simple Question (Direct)
Simple Question
Q1705319
P734
Q82799
USER
Who is associated with Josef Moser ?
(Q1705319,P734,c(Q82799))
action filter_type
action find
entity Q1705319
relation P734
type Q82799
['Q1705319', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1705319 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Josef Moser
action filter_type
action find
entity Josef Moser
relation family name
type name
['Josef Moser', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Josef_Moser property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q14777025
SYSTEM
Moser
Q14777025
(Q1705319,P734,c(Q82799))
action filter_type
action find
entity Q1705319
relation P734
type Q82799
[ANSWER] is associated with Josef [ANSWER]
['Q1705319', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1705319 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Moser
Moser is associated with Josef Moser
Moser
action filter_type
action find
entity Josef Moser
relation family name
type name
['Josef Moser', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Josef_Moser property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1705319
P102
Q7210356
USER
Which party is Josef Moser affiliated with ?
(Q1705319,P102,c(Q7210356))
action filter_type
action find
entity Q1705319
relation P102
type Q7210356
['Q1705319', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1705319 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Josef Moser
action filter_type
action find
entity Josef Moser
relation member of political party
type political organization
['Josef Moser', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Josef_Moser property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q131692
SYSTEM
Austrian Freedom Party
Q131692
(Q1705319,P102,c(Q7210356))
action filter_type
action find
entity Q1705319
relation P102
type Q7210356
Josef Moser is affiliated with [ANSWER]
['Q1705319', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1705319 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Austrian Freedom Party
Josef Moser is affiliated with Austrian Freedom Party
Austrian Freedom Party
action filter_type
action find
entity Josef Moser
relation member of political party
type political organization
['Josef Moser', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Josef_Moser property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1705319
P512
Q3412758
USER
Which qualification does Josef Moser hold ?
(Q1705319,P512,c(Q3412758))
action filter_type
action find
entity Q1705319
relation P512
type Q3412758
['Q1705319', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?b WHERE { resource:Q1705319 property:P512 ?b . ?b rdf:type ontology:Q3412758 }
Josef Moser
action filter_type
action find
entity Josef Moser
relation academic degree
type qualification
['Josef Moser', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?b WHERE { resource:Josef_Moser property:academic_degree ?b . ?b rdf:type ontology:qualification }
[]
qualification
Q959320
SYSTEM
Doctor of Law
Q959320
(Q1705319,P512,c(Q3412758))
action filter_type
action find
entity Q1705319
relation P512
type Q3412758
Josef Moser holds a [ANSWER]
['Q1705319', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?b WHERE { resource:Q1705319 property:P512 ?b . ?b rdf:type ontology:Q3412758 }
Doctor of Law
Josef Moser holds a Doctor of Law
Doctor of Law
action filter_type
action find
entity Josef Moser
relation academic degree
type qualification
['Josef Moser', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?b WHERE { resource:Josef_Moser property:academic_degree ?b . ?b rdf:type ontology:qualification }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q959320 Q20876855
P512
Q502895
USER
Does Marisa Xandri Pujol hold the diploma that qualification ?
(Q20876855,P512,Q959320)
action is_in
entity Q20876855
action find
entity Q959320
relation P512
['Q20876855', 'P512', 'Q959320']
ASK WHERE { resource:Q959320 property:P512 resource:Q20876855 }
Doctor of Law Marisa Xandri Pujol
action is_in
entity Marisa Xandri Pujol
action find
entity Doctor of Law
relation academic degree
['Marisa Xandri Pujol', 'academic degree', 'Doctor of Law']
ASK WHERE { resource:Doctor_of_Law property:academic_degree resource:Marisa_Xandri_Pujol }
[]
common name
SYSTEM
NO
(Q20876855,P512,Q959320)
action is_in
entity Q20876855
action find
entity Q959320
relation P512
[ANSWER]
['Q20876855', 'P512', 'Q959320']
ASK WHERE { resource:Q959320 property:P512 resource:Q20876855 }
No
action is_in
entity Marisa Xandri Pujol
action find
entity Doctor of Law
relation academic degree
['Marisa Xandri Pujol', 'academic degree', 'Doctor of Law']
ASK WHERE { resource:Doctor_of_Law property:academic_degree resource:Marisa_Xandri_Pujol }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q131692 Q1741
P159
Q56061
USER
Is Vienna the headquarter of Austrian Freedom Party located ?
(Q131692,P159,Q1741)
action is_in
entity Q1741
action find
entity Q131692
relation P159
['Q131692', 'P159', 'Q1741']
ASK WHERE { resource:Q131692 property:P159 resource:Q1741 }
Austrian Freedom Party Vienna
action is_in
entity Vienna
action find
entity Austrian Freedom Party
relation headquarters location
['Austrian Freedom Party', 'headquarters location', 'Vienna']
ASK WHERE { resource:Austrian_Freedom_Party property:headquarters_location resource:Vienna }
[]
administrative territorial entity
SYSTEM
YES
(Q131692,P159,Q1741)
action is_in
entity Q1741
action find
entity Q131692
relation P159
[ANSWER]
['Q131692', 'P159', 'Q1741']
ASK WHERE { resource:Q131692 property:P159 resource:Q1741 }
Yes
action is_in
entity Vienna
action find
entity Austrian Freedom Party
relation headquarters location
['Austrian Freedom Party', 'headquarters location', 'Vienna']
ASK WHERE { resource:Austrian_Freedom_Party property:headquarters_location resource:Vienna }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q82799 Q15617994 Q82799
USER
How many names come from exactly 1 names or administrative territories ?
(c(Q82799),P138,c(Q82799)|c(Q15617994))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q82799
action find_tuple_counts
relation P138
type Q82799
type Q15617994
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?w ) WHERE { { ?j property:P138 ?y . ?j rdf:type ontology:Q82799 . ?y rdf:type ontology:Q82799 } UNION { ?j property:P138 ?y . ?j rdf:type ontology:Q82799 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation named after
type name
type name
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'name'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?w ) WHERE { { ?j property:named_after ?y . ?j rdf:type ontology:name . ?y rdf:type ontology:name } UNION { ?j property:named_after ?y . ?j rdf:type ontology:name . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
[]
name designation for an administrative territorial entity name
SYSTEM
6
Q23727105 Q18043344 Q25115046 Q17747435 Q21507928 Q24229341
(c(Q82799),P138,c(Q82799)|c(Q15617994))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q82799
action find_tuple_counts
relation P138
type Q82799
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?w ) WHERE { { ?j property:P138 ?y . ?j rdf:type ontology:Q82799 . ?y rdf:type ontology:Q82799 } UNION { ?j property:P138 ?y . ?j rdf:type ontology:Q82799 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
Poisson Renard Louarn Ruzena Mouton Toscano
6
action count
action equal
action union
action find_tuple_counts
relation named after
type name
type name
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'name'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?y ) AS ?w ) WHERE { { ?j property:named_after ?y . ?j rdf:type ontology:name . ?y rdf:type ontology:name } UNION { ?j property:named_after ?y . ?j rdf:type ontology:name . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?j } . FILTER ( ?w = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q231393 Q1705319
P27
Q1048835
USER
Which political territories are Josef Moser or Zvi Yanai an inhabitant of ?
OR((Q1705319,P27,c(Q1048835)), (Q231393,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1705319
relation P27
action find
entity Q231393
relation P27
type Q1048835
{'OR': [['Q1705319', 'P27', {'concept': 'Q1048835'}], ['Q231393', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . { { resource:Q1705319 property:P27 ?k } UNION { resource:Q231393 property:P27 ?k } } }
Zvi Yanai Josef Moser
action filter_type
action union
action find
entity Josef Moser
relation country of citizenship
action find
entity Zvi Yanai
relation country of citizenship
type political territorial entity
{'OR': [['Josef Moser', 'country of citizenship', {'concept': 'political territorial entity'}], ['Zvi Yanai', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . { { resource:Josef_Moser property:country_of_citizenship ?k } UNION { resource:Zvi_Yanai property:country_of_citizenship ?k } } }
[]
political territorial entity
Q193714 Q40
SYSTEM
Mandatory Palestine, Austria
Q193714 Q40
OR((Q1705319,P27,c(Q1048835)), (Q231393,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1705319
relation P27
action find
entity Q231393
relation P27
type Q1048835
In [ANSWERS] are Josef Moser or Zvi Yanai an inhabitant of
{'OR': [['Q1705319', 'P27', {'concept': 'Q1048835'}], ['Q231393', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . { { resource:Q1705319 property:P27 ?k } UNION { resource:Q231393 property:P27 ?k } } }
Mandatory Palestine Austria
In Mandatory Palestine and Austria are Josef Moser or Zvi Yanai an inhabitant of
Mandatory Palestine Austria
action filter_type
action union
action find
entity Josef Moser
relation country of citizenship
action find
entity Zvi Yanai
relation country of citizenship
type political territorial entity
{'OR': [['Josef Moser', 'country of citizenship', {'concept': 'political territorial entity'}], ['Zvi Yanai', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . { { resource:Josef_Moser property:country_of_citizenship ?k } UNION { resource:Zvi_Yanai property:country_of_citizenship ?k } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q881
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with lesser number of political territories than Vietnam ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q881
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q881 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?c ) }
Vietnam
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Vietnam
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Vietnam property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?c ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
84
Q702 Q805 Q262 Q784 Q265 Q37 Q712 Q710 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q881
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Q881 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?c ) }
Federated States of Micronesia Yemen Algeria Dominica Uzbekistan Lithuania Fiji Kiribati Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
84
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Vietnam
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { ?j property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?c ) WHERE { resource:Vietnam property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q37
P530
Q15617994 Q1048835
USER
And what about Lithuania?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q37
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q37 property:P530 ?f } } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?g ) WHERE { ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?p } GROUP BY ?p } }
Lithuania
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Lithuania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lithuania property:diplomatic_relation ?f } } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?g ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?p } GROUP BY ?p } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q37
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q37 property:P530 ?f } } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?g ) WHERE { ?p rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?d property:P530 ?p } GROUP BY ?p } }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Lithuania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lithuania property:diplomatic_relation ?f } } . FILTER ( ?g < ?a ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?g ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?d property:diplomatic_relation ?p } GROUP BY ?p } }
[]