Simple Question (Direct)
Simple Question
Q214197
P106
Q12737077
USER
What is the job of Hans-Georg Wieck ?
(Q214197,P106,c(Q12737077))
action filter_type
action find
entity Q214197
relation P106
type Q12737077
['Q214197', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q214197 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Hans-Georg Wieck
action filter_type
action find
entity Hans-Georg Wieck
relation occupation
type occupation
['Hans-Georg Wieck', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Hans-Georg_Wieck property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q193391
SYSTEM
diplomat
Q193391
(Q214197,P106,c(Q12737077))
action filter_type
action find
entity Q214197
relation P106
type Q12737077
The job of Hans-Georg Wieck is a [ANSWER]
['Q214197', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q214197 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
diplomat
The job of Hans-Georg Wieck is a diplomat
diplomat
action filter_type
action find
entity Hans-Georg Wieck
relation occupation
type occupation
['Hans-Georg Wieck', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Hans-Georg_Wieck property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q214197
P1037
Q327333
USER
What is the name of government agency directed by Hans-Georg Wieck ?
(c(Q327333),P1037,Q214197)
action filter_type
action find_reverse
entity Q214197
relation P1037
type Q327333
[{'concept': 'Q327333'}, 'P1037', 'Q214197']
SELECT DISTINCT ?i WHERE { ?i property:P1037 resource:Q214197 . ?i rdf:type ontology:Q327333 }
Hans-Georg Wieck
action filter_type
action find_reverse
entity Hans-Georg Wieck
relation manager/director
type government agency
[{'concept': 'government agency'}, 'manager/director', 'Hans-Georg Wieck']
SELECT DISTINCT ?i WHERE { ?i property:manager/director resource:Hans-Georg_Wieck . ?i rdf:type ontology:government_agency }
[]
government agency
Q272969
SYSTEM
Bundesnachrichtendienst
Q272969
(c(Q327333),P1037,Q214197)
action filter_type
action find_reverse
entity Q214197
relation P1037
type Q327333
The name of government agency directed by Hans-Georg Wieck is the [ANSWER]
[{'concept': 'Q327333'}, 'P1037', 'Q214197']
SELECT DISTINCT ?i WHERE { ?i property:P1037 resource:Q214197 . ?i rdf:type ontology:Q327333 }
Bundesnachrichtendienst
The name of government agency directed by Hans-Georg Wieck is the Bundesnachrichtendienst
Bundesnachrichtendienst
action filter_type
action find_reverse
entity Hans-Georg Wieck
relation manager/director
type government agency
[{'concept': 'government agency'}, 'manager/director', 'Hans-Georg Wieck']
SELECT DISTINCT ?i WHERE { ?i property:manager/director resource:Hans-Georg_Wieck . ?i rdf:type ontology:government_agency }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P108
Q327333 Q502895
USER
How many government agencies employ approximately the same number of people as that government agency ?
(c(Q502895),P108,c(Q327333))
action count
action approx
action find_reverse_tuple_counts
relation P108
type Q327333
type Q502895
action count
action filter_type
action find
entity Q272969
relation P108
type Q327333
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q327333'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Q272969 property:P108 ?u . ?u rdf:type ontology:Q327333 } } . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P108 ?o . ?o rdf:type ontology:Q327333 . ?v rdf:type ontology:Q502895 } GROUP BY ?o } }
action count
action approx
action find_reverse_tuple_counts
relation employer
type government agency
type common name
action count
action filter_type
action find
entity Bundesnachrichtendienst
relation employer
type government agency
[{'concept': 'common name'}, 'employer', {'concept': 'government agency'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Bundesnachrichtendienst property:employer ?u . ?u rdf:type ontology:government_agency } } . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:employer ?o . ?o rdf:type ontology:government_agency . ?v rdf:type ontology:common_name } GROUP BY ?o } }
[]
government agency common name
SYSTEM
71
Q274564 Q691154 Q181694 Q152698 Q5291036 Q1068951 Q7260282 Q1206616 Q1628883 Q812443 Q4294704 Q3091309 Q2367019 Q5557977 Q2124843 Q1125966 Q2925283 Q845937 Q1140638 Q12327327 Q2671706 Q3403362 Q3174167 Q335357 Q5060461 Q123347 Q2042347 Q7444027 Q863254 Q283207 Q8333 Q13053376 Q658626 Q6519259 Q240390 Q782740 Q510865 Q278032 Q34216 Q2944031 Q2171739 Q210175 Q3753092 Q121194 Q1275301 Q3152388 Q314609 Q220798 Q174588 Q153559 Q1788820 Q2704796 Q392953 Q1519799 Q478481 Q335827 Q229058 Q179103 Q303976 Q380238 Q644545 Q622899 Q3339046 Q156616 Q80919 Q272969 Q12373345 Q16973793 Q5013222 Q612276 Q1817489
(c(Q502895),P108,c(Q327333))
action count
action approx
action find_reverse_tuple_counts
relation P108
type Q327333
type Q502895
action count
action filter_type
action find
entity Q272969
relation P108
type Q327333
[ANSWER]
[{'concept': 'Q502895'}, 'P108', {'concept': 'Q327333'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Q272969 property:P108 ?u . ?u rdf:type ontology:Q327333 } } . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P108 ?o . ?o rdf:type ontology:Q327333 . ?v rdf:type ontology:Q502895 } GROUP BY ?o } }
Inter-Services Intelligence Public works ministry Australian Secret Intelligence Service Reich Main Security Office Dominion Bureau of Statistics Ministry of State Security of the People's Republic of China Punjab Police Deuxième Bureau Service de Documentation Extérieure et de Contre-Espionnage Bavarian Ministry of Economic Affairs and Media, Energy and Technology Ministry of Social Affairs London Fire Brigade Statistics Norway Missouri Department of Transportation Bureau Bijzondere Opdrachten Hungarian Central Statistical Office Research and Intervention Brigade Instituto Nacional de Estadística UK Space Agency Ministry of Health Ministry of Immigrant Absorption South Wales Police Danish Security and Intelligence Service Federal Aviation Administration Central Board of Excise and Customs Australian Bureau of Statistics Azerbaijan National Aerospace Agency Secret Intelligence Australia Foreign Intelligence Service New York City Fire Department Federal Bureau of Investigation Ministry of Culture of the Republic of Armenia Office of Strategic Services Leicestershire Constabulary Special Operations Executive Australian Security Intelligence Organisation Texas Ranger Division Arizona Rangers Mossad Counter Terrorist Unit Oklahoma Department of Transportation MI5 T.I.A National Security Agency ENAV Institut national d'études démographiques Gehlen Organization Government Communications Headquarters British Transport Police Sicherheitsdienst ministry of defense National Space Development Agency Italian Space Agency Ministry of Health National Intelligence Organization Directorate-General for External Security Indian Space Research Organisation Japan Aerospace Exploration Agency National Intelligence Service Shin Bet Secretariat of State Drug Enforcement Administration New York City Department of Correction INSEE KGB Bundesnachrichtendienst Ministry of Finance Her Majesty's Diplomatic Service CN Police Defense Intelligence Agency Tax Ministry of Denmark
71
action count
action approx
action find_reverse_tuple_counts
relation employer
type government agency
type common name
action count
action filter_type
action find
entity Bundesnachrichtendienst
relation employer
type government agency
[{'concept': 'common name'}, 'employer', {'concept': 'government agency'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { resource:Bundesnachrichtendienst property:employer ?u . ?u rdf:type ontology:government_agency } } . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:employer ?o . ?o rdf:type ontology:government_agency . ?v rdf:type ontology:common_name } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q593644
P101
Q502895
USER
Which people have field of work as chemist ?
(c(Q502895),P101,Q593644)
action filter_type
action find_reverse
entity Q593644
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q593644']
SELECT DISTINCT ?n WHERE { ?n property:P101 resource:Q593644 . ?n rdf:type ontology:Q502895 }
chemist
action filter_type
action find_reverse
entity chemist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'chemist']
SELECT DISTINCT ?n WHERE { ?n property:field_of_work resource:chemist . ?n rdf:type ontology:common_name }
[]
common name
Q18560133 Q350034
SYSTEM
Wolfgang Kautek, Norman Hackerman
Q18560133 Q350034
(c(Q502895),P101,Q593644)
action filter_type
action find_reverse
entity Q593644
relation P101
type Q502895
[ANSWERS] have field of work as chemist
[{'concept': 'Q502895'}, 'P101', 'Q593644']
SELECT DISTINCT ?n WHERE { ?n property:P101 resource:Q593644 . ?n rdf:type ontology:Q502895 }
Wolfgang Kautek Norman Hackerman
Wolfgang Kautek and Norman Hackerman have field of work as chemist
Wolfgang Kautek Norman Hackerman
action filter_type
action find_reverse
entity chemist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'chemist']
SELECT DISTINCT ?n WHERE { ?n property:field_of_work resource:chemist . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18560133 Q350034
P106
Q12737077
USER
What are the professions of Wolfgang Kautek and Norman Hackerman ?
(Q18560133,P106,c(Q12737077)) (Q350034,P106,c(Q12737077))
action union
action filter_type
action find
entity Q18560133
relation P106
type Q12737077
action filter_type
action find
entity Q350034
relation P106
type Q12737077
['Q18560133', 'P106', {'concept': 'Q12737077'}] ['Q350034', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?p property:P106 ?b . VALUES ( ?p ) { ( resource:Q18560133 ) ( resource:Q350034 ) } }
Wolfgang Kautek Norman Hackerman
action union
action filter_type
action find
entity Wolfgang Kautek
relation occupation
type occupation
action filter_type
action find
entity Norman Hackerman
relation occupation
type occupation
['Wolfgang Kautek', 'occupation', {'concept': 'occupation'}] ['Norman Hackerman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?p property:occupation ?b . VALUES ( ?p ) { ( resource:Wolfgang_Kautek ) ( resource:Norman_Hackerman ) } }
[]
occupation
Q1622272 Q593644 Q901
SYSTEM
university teacher, chemist, scientist
Q593644 Q901 Q1622272 Q593644
(Q18560133,P106,c(Q12737077)) (Q350034,P106,c(Q12737077))
action union
action filter_type
action find
entity Q18560133
relation P106
type Q12737077
action filter_type
action find
entity Q350034
relation P106
type Q12737077
The professions of Wolfgang Kautek and Norman Hackerman are a [ANSWERS]
['Q18560133', 'P106', {'concept': 'Q12737077'}] ['Q350034', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?p property:P106 ?b . VALUES ( ?p ) { ( resource:Q18560133 ) ( resource:Q350034 ) } }
chemist scientist university teacher chemist
The professions of Wolfgang Kautek and Norman Hackerman are a university teacher, chemist and scientist
university teacher chemist scientist
action union
action filter_type
action find
entity Wolfgang Kautek
relation occupation
type occupation
action filter_type
action find
entity Norman Hackerman
relation occupation
type occupation
['Wolfgang Kautek', 'occupation', {'concept': 'occupation'}] ['Norman Hackerman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?p property:occupation ?b . VALUES ( ?p ) { ( resource:Wolfgang_Kautek ) ( resource:Norman_Hackerman ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q350034
P69
Q163740
USER
Where was Norman Hackerman educated ?
(Q350034,P69,c(Q163740))
action filter_type
action find
entity Q350034
relation P69
type Q163740
['Q350034', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?i WHERE { resource:Q350034 property:P69 ?i . ?i rdf:type ontology:Q163740 }
Norman Hackerman
action filter_type
action find
entity Norman Hackerman
relation educated at
type nonprofit organization
['Norman Hackerman', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?i WHERE { resource:Norman_Hackerman property:educated_at ?i . ?i rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q193727
SYSTEM
Johns Hopkins University
Q193727
(Q350034,P69,c(Q163740))
action filter_type
action find
entity Q350034
relation P69
type Q163740
Norman Hackerman was educated by [ANSWER]
['Q350034', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?i WHERE { resource:Q350034 property:P69 ?i . ?i rdf:type ontology:Q163740 }
Johns Hopkins University
Norman Hackerman was educated by Johns Hopkins University
Johns Hopkins University
action filter_type
action find
entity Norman Hackerman
relation educated at
type nonprofit organization
['Norman Hackerman', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?i WHERE { resource:Norman_Hackerman property:educated_at ?i . ?i rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2380790 Q214197
P27 P17
Q1048835
USER
Which political territories are the native countriesof Hans-Georg Wieck or do Vinkel belong to ?
OR((Q214197,P27,c(Q1048835)), (Q2380790,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q214197
relation P27
action find
entity Q2380790
relation P17
type Q1048835
{'OR': [['Q214197', 'P27', {'concept': 'Q1048835'}], ['Q2380790', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q214197 property:P27 ?n } UNION { resource:Q2380790 property:P17 ?n } } . ?n rdf:type ontology:Q1048835 }
Vinkel Hans-Georg Wieck
action filter_type
action union
action find
entity Hans-Georg Wieck
relation country of citizenship
action find
entity Vinkel
relation country
type political territorial entity
{'OR': [['Hans-Georg Wieck', 'country of citizenship', {'concept': 'political territorial entity'}], ['Vinkel', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Hans-Georg_Wieck property:country_of_citizenship ?n } UNION { resource:Vinkel property:country ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q214197,P27,c(Q1048835)), (Q2380790,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q214197
relation P27
action find
entity Q2380790
relation P17
type Q1048835
[ANSWERS] are the native countriesof Hans-Georg Wieck or do Vinkel belong to
{'OR': [['Q214197', 'P27', {'concept': 'Q1048835'}], ['Q2380790', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q214197 property:P27 ?n } UNION { resource:Q2380790 property:P17 ?n } } . ?n rdf:type ontology:Q1048835 }
Germany Denmark
Germany and Denmark are the native countriesof Hans-Georg Wieck or do Vinkel belong to
Germany Denmark
action filter_type
action union
action find
entity Hans-Georg Wieck
relation country of citizenship
action find
entity Vinkel
relation country
type political territorial entity
{'OR': [['Hans-Georg Wieck', 'country of citizenship', {'concept': 'political territorial entity'}], ['Vinkel', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Hans-Georg_Wieck property:country_of_citizenship ?n } UNION { resource:Vinkel property:country ?n } } . ?n rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3379575 Q18560133
P27
Q1048835
USER
Which political territories are the native countriesof Wolfgang Kautek or Mae Koime ?
OR((Q18560133,P27,c(Q1048835)), (Q3379575,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q18560133
relation P27
action find
entity Q3379575
relation P27
type Q1048835
{'OR': [['Q18560133', 'P27', {'concept': 'Q1048835'}], ['Q3379575', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?z property:P27 ?h . VALUES ( ?z ) { ( resource:Q18560133 ) ( resource:Q3379575 ) } } . ?h rdf:type ontology:Q1048835 }
Mae Koime Wolfgang Kautek
action filter_type
action union
action find
entity Wolfgang Kautek
relation country of citizenship
action find
entity Mae Koime
relation country of citizenship
type political territorial entity
{'OR': [['Wolfgang Kautek', 'country of citizenship', {'concept': 'political territorial entity'}], ['Mae Koime', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?z property:country_of_citizenship ?h . VALUES ( ?z ) { ( resource:Wolfgang_Kautek ) ( resource:Mae_Koime ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40 Q691
SYSTEM
Austria, Papua New Guinea
Q40 Q691
OR((Q18560133,P27,c(Q1048835)), (Q3379575,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q18560133
relation P27
action find
entity Q3379575
relation P27
type Q1048835
[ANSWERS] are the native countriesof Wolfgang Kautek or Mae Koime
{'OR': [['Q18560133', 'P27', {'concept': 'Q1048835'}], ['Q3379575', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?z property:P27 ?h . VALUES ( ?z ) { ( resource:Q18560133 ) ( resource:Q3379575 ) } } . ?h rdf:type ontology:Q1048835 }
Austria Papua New Guinea
Austria and Papua New Guinea are the native countriesof Wolfgang Kautek or Mae Koime
Austria Papua New Guinea
action filter_type
action union
action find
entity Wolfgang Kautek
relation country of citizenship
action find
entity Mae Koime
relation country of citizenship
type political territorial entity
{'OR': [['Wolfgang Kautek', 'country of citizenship', {'concept': 'political territorial entity'}], ['Mae Koime', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?z property:country_of_citizenship ?h . VALUES ( ?z ) { ( resource:Wolfgang_Kautek ) ( resource:Mae_Koime ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7907
P530
Q1048835
USER
Are Rheingau-Taunus-Kreis known to have diplomatic connections with those ones ?
(Q7907,P530,Q40) (Q7907,P530,Q691)
action is_in
entity prev_answer
action find
entity Q7907
relation P530
['Q7907', 'P530', 'Q40'] ['Q7907', 'P530', 'Q691']
ASK WHERE { VALUES ( ?i ) { ( resource:Q40 ) ( resource:Q691 ) } . resource:Q7907 property:P530 ?i }
Rheingau-Taunus-Kreis
action is_in
entity prev_answer
action find
entity Rheingau-Taunus-Kreis
relation diplomatic relation
['Rheingau-Taunus-Kreis', 'diplomatic relation', 'Austria'] ['Rheingau-Taunus-Kreis', 'diplomatic relation', 'Papua New Guinea']
ASK WHERE { VALUES ( ?i ) { ( resource:Austria ) ( resource:Papua_New_Guinea ) } . resource:Rheingau-Taunus-Kreis property:diplomatic_relation ?i }
[]
political territorial entity
SYSTEM
NO
(Q7907,P530,Q40) (Q7907,P530,Q691)
action is_in
entity prev_answer
action find
entity Q7907
relation P530
[ANSWER]
['Q7907', 'P530', 'Q40'] ['Q7907', 'P530', 'Q691']
ASK WHERE { VALUES ( ?i ) { ( resource:Q40 ) ( resource:Q691 ) } . resource:Q7907 property:P530 ?i }
No
action is_in
entity prev_answer
action find
entity Rheingau-Taunus-Kreis
relation diplomatic relation
['Rheingau-Taunus-Kreis', 'diplomatic relation', 'Austria'] ['Rheingau-Taunus-Kreis', 'diplomatic relation', 'Papua New Guinea']
ASK WHERE { VALUES ( ?i ) { ( resource:Austria ) ( resource:Papua_New_Guinea ) } . resource:Rheingau-Taunus-Kreis property:diplomatic_relation ?i }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6792909 Q40
P530 P27
Q1048835
USER
Which political territories holds diplomatic relationship with Austria and do Maurice Bramley belong to ?
AND((Q40,P530,c(Q1048835)), (Q6792909,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q40
relation P530
action find
entity Q6792909
relation P27
type Q1048835
{'AND': [['Q40', 'P530', {'concept': 'Q1048835'}], ['Q6792909', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { resource:Q40 property:P530 ?f . resource:Q6792909 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Maurice Bramley Austria
action filter_type
action intersection
action find
entity Austria
relation diplomatic relation
action find
entity Maurice Bramley
relation country of citizenship
type political territorial entity
{'AND': [['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Maurice Bramley', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Austria property:diplomatic_relation ?f . resource:Maurice_Bramley property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q40,P530,c(Q1048835)), (Q6792909,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q40
relation P530
action find
entity Q6792909
relation P27
type Q1048835
[ANSWER] holds diplomatic relationship with Austria and do Maurice Bramley belong to
{'AND': [['Q40', 'P530', {'concept': 'Q1048835'}], ['Q6792909', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { resource:Q40 property:P530 ?f . resource:Q6792909 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Australia
Australia holds diplomatic relationship with Austria and do Maurice Bramley belong to
Australia
action filter_type
action intersection
action find
entity Austria
relation diplomatic relation
action find
entity Maurice Bramley
relation country of citizenship
type political territorial entity
{'AND': [['Austria', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Maurice Bramley', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Austria property:diplomatic_relation ?f . resource:Maurice_Bramley property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P137
Q20027951 Q43229
USER
How many aircraft power classes or organizations were managed by that political territory ?
(c(Q20027951),P137,Q408) (c(Q43229),P137,Q408) (c(Q20027951),P137,Q408) (c(Q43229),P137,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P137
type Q20027951
action filter_type
action find_reverse
entity Q408
relation P137
type Q43229
[{'concept': 'Q20027951'}, 'P137', 'Q408'] [{'concept': 'Q43229'}, 'P137', 'Q408'] [{'concept': 'Q20027951'}, 'P137', 'Q408'] [{'concept': 'Q43229'}, 'P137', 'Q408']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:Q20027951 . ?z property:P137 resource:Q408 } UNION { ?z property:P137 resource:Q408 . ?z rdf:type ontology:Q43229 } }
action count
action union
action filter_type
action find_reverse
entity Australia
relation operator
type aircraft power class
action filter_type
action find_reverse
entity Australia
relation operator
type organization
[{'concept': 'aircraft power class'}, 'operator', 'Australia'] [{'concept': 'organization'}, 'operator', 'Australia'] [{'concept': 'aircraft power class'}, 'operator', 'Australia'] [{'concept': 'organization'}, 'operator', 'Australia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:aircraft_power_class . ?z property:operator resource:Australia } UNION { ?z property:operator resource:Australia . ?z rdf:type ontology:organization } }
[]
aircraft power class organization
SYSTEM
3
Q23891513 Q23891480 Q46397
(c(Q20027951),P137,Q408) (c(Q43229),P137,Q408) (c(Q20027951),P137,Q408) (c(Q43229),P137,Q408)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P137
type Q20027951
action filter_type
action find_reverse
entity Q408
relation P137
type Q43229
[ANSWER]
[{'concept': 'Q20027951'}, 'P137', 'Q408'] [{'concept': 'Q43229'}, 'P137', 'Q408'] [{'concept': 'Q20027951'}, 'P137', 'Q408'] [{'concept': 'Q43229'}, 'P137', 'Q408']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:Q20027951 . ?z property:P137 resource:Q408 } UNION { ?z property:P137 resource:Q408 . ?z rdf:type ontology:Q43229 } }
Australian Embassy to Belgium and Luxembourg and Australian Mission to the European Union Australian Embassy and Permanent Mission to the United Nations, Austria F/A-18 Hornet
3
action count
action union
action filter_type
action find_reverse
entity Australia
relation operator
type aircraft power class
action filter_type
action find_reverse
entity Australia
relation operator
type organization
[{'concept': 'aircraft power class'}, 'operator', 'Australia'] [{'concept': 'organization'}, 'operator', 'Australia'] [{'concept': 'aircraft power class'}, 'operator', 'Australia'] [{'concept': 'organization'}, 'operator', 'Australia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { { ?z rdf:type ontology:aircraft_power_class . ?z property:operator resource:Australia } UNION { ?z property:operator resource:Australia . ?z rdf:type ontology:organization } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40
P463
Q874405
USER
Which social groups were Austria a member of ?
(Q40,P463,c(Q874405))
action filter_type
action find
entity Q40
relation P463
type Q874405
['Q40', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?d WHERE { resource:Q40 property:P463 ?d . ?d rdf:type ontology:Q874405 }
Austria
action filter_type
action find
entity Austria
relation member of
type social group
['Austria', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?d WHERE { resource:Austria property:member_of ?d . ?d rdf:type ontology:social_group }
[]
social group
Q782942 Q8908
SYSTEM
Australia Group, Council of Europe
Q782942 Q8908
(Q40,P463,c(Q874405))
action filter_type
action find
entity Q40
relation P463
type Q874405
[ANSWERS]
['Q40', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?d WHERE { resource:Q40 property:P463 ?d . ?d rdf:type ontology:Q874405 }
Australia Group Council of Europe
Which social groups were Austria a member of
Australia Group Council of Europe
action filter_type
action find
entity Austria
relation member of
type social group
['Austria', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?d WHERE { resource:Austria property:member_of ?d . ?d rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q713936
Q874405
USER
And what about Neil Smelser?
(Q713936,P463,c(Q874405))
action filter_type
action find
entity Q713936
relation P463
type Q874405
['Q713936', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q874405 . resource:Q713936 property:P463 ?g }
Neil Smelser
action filter_type
action find
entity Neil Smelser
relation member of
type social group
['Neil Smelser', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:social_group . resource:Neil_Smelser property:member_of ?g }
[]
social group
Q466089
SYSTEM
American Philosophical Society
Q466089
(Q713936,P463,c(Q874405))
action filter_type
action find
entity Q713936
relation P463
type Q874405
[ANSWER]
['Q713936', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q874405 . resource:Q713936 property:P463 ?g }
American Philosophical Society
American Philosophical Society
action filter_type
action find
entity Neil Smelser
relation member of
type social group
['Neil Smelser', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:social_group . resource:Neil_Smelser property:member_of ?g }
[]